summaryrefslogtreecommitdiff
path: root/struct.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-26 22:31:32 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 21:01:42 -0700
commitff6dc0bc519886905e758a84e572f5e34d6c03d1 (patch)
tree8906c4b8bb0c7dc468419efc17b872db62a4e068 /struct.go
parentd1b5bc1f05624614f43ef85597f4aa9d7a166d23 (diff)
Move things between files
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 = ""