summaryrefslogtreecommitdiff
path: root/struct.go
diff options
context:
space:
mode:
Diffstat (limited to 'struct.go')
-rw-r--r--struct.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/struct.go b/struct.go
index 24b2ac0..b7fc287 100644
--- a/struct.go
+++ b/struct.go
@@ -6,6 +6,8 @@ package lowmemjson
import (
"reflect"
+
+ "git.lukeshu.com/go/lowmemjson/internal"
)
type structField struct {
@@ -143,7 +145,7 @@ func indexStructInner(typ reflect.Type, byPos *[]structField, byName map[string]
if tag == "-" {
continue
}
- tagName, opts := parseTag(tag)
+ tagName, opts := internal.ParseTag(tag)
name := tagName
if !isValidTag(name) {
name = ""