diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-08-13 22:05:20 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@datawire.io> | 2022-08-14 20:31:20 -0600 |
commit | 2ba5d96ccba101e6ccbf32b08e2fd18d4b8d7787 (patch) | |
tree | 1bbd66325cf9b433fbea08a0ee83a79927aaca35 /borrowed_misc.go | |
parent | 4584172cdf3071cad76a67952f188863e6d4ed91 (diff) |
parse_scan: Add reader abstractions on top of Parser
Diffstat (limited to 'borrowed_misc.go')
-rw-r--r-- | borrowed_misc.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/borrowed_misc.go b/borrowed_misc.go index 5c6bbb6..343c924 100644 --- a/borrowed_misc.go +++ b/borrowed_misc.go @@ -5,23 +5,9 @@ package lowmemjson import ( - "fmt" "reflect" ) -// A SyntaxError is a description of a JSON syntax error. -// -// from scanner.go -type SyntaxError struct { - msg string // description of error - Offset int64 // error occurred after reading Offset bytes -} - -func (e *SyntaxError) Error() string { - return fmt.Sprintf("JSON syntax error at input byte %v: %v", - e.Offset, e.msg) -} - // from encode.go func isEmptyValue(v reflect.Value) bool { switch v.Kind() { |