mirror of https://github.com/goccy/go-json.git
Fix build error
This commit is contained in:
parent
fc288e1a6c
commit
08a65e9bfd
|
@ -486,6 +486,13 @@ func (t opType) fieldToStringTagField() opType {
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
HeadToOnlyHead: func() string {
|
HeadToOnlyHead: func() string {
|
||||||
|
switch typ {
|
||||||
|
case "", "Array", "Map", "MapLoad", "Slice",
|
||||||
|
"Struct", "Recursive", "MarshalJSON", "MarshalText",
|
||||||
|
"IntString", "Int8String", "Int16String", "Int32String", "Int64String",
|
||||||
|
"UintString", "Uint8String", "Uint16String", "Uint32String", "Uint64String":
|
||||||
|
return op
|
||||||
|
}
|
||||||
return fmt.Sprintf(
|
return fmt.Sprintf(
|
||||||
"Struct%sField%s%sHead%sOnly",
|
"Struct%sField%s%sHead%sOnly",
|
||||||
escapedOrNot,
|
escapedOrNot,
|
||||||
|
|
1368
encode_optype.go
1368
encode_optype.go
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue