package errorutil
import "github.com/appc/spec/Godeps/_workspace/src/go4.org/errorutil"
Package errorutil helps make better error messages.
Index ¶
Functions ¶
func HighlightBytePosition ¶
HighlightBytePosition takes a reader and the location in bytes of a parse error (for instance, from json.SyntaxError.Offset) and returns the line, column, and pretty-printed context around the error with an arrow indicating the exact position of the syntax error.
Source Files ¶
- Version
- v0.8.2
- Published
- May 23, 2016
- Platform
- windows/amd64
- Imports
- 5 packages
- Last checked
- 1 hour ago –
Tools for package owners.