summaryrefslogtreecommitdiff
path: root/struct.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-30 21:54:38 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-30 21:54:38 -0700
commit8467bdaa181257d031a258a05012dc85adbcb233 (patch)
treebc9bf437a34905f0b7249352043aff9e9d80ebe8 /struct.go
parent0b57145421e7e4f165f64e73ee7c5d8102945569 (diff)
parent2e48a42fb9b9e946958810cfbb90ae85bee997e4 (diff)
Merge branch 'lukeshu/quality2'
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 = ""