package parsekit_test import ( "fmt" "git.makaay.nl/mauricem/go-parsekit" ) func ExampleError() { err := &parsekit.Error{ Message: "it broke down", Cursor: parsekit.Cursor{Line: 9, Column: 41}, } fmt.Println(err.Error()) fmt.Printf("%s\n", err) // Output: // it broke down at line 10, column 42 // it broke down at line 10, column 42 }