summaryrefslogtreecommitdiff
path: root/borrowed_misc.go
diff options
context:
space:
mode:
Diffstat (limited to 'borrowed_misc.go')
-rw-r--r--borrowed_misc.go14
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() {