Fix build error

This commit is contained in:
Masaaki Goshima 2021-01-09 02:35:37 +09:00
parent fc288e1a6c
commit 08a65e9bfd
2 changed files with 7 additions and 1368 deletions

View File

@ -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,

File diff suppressed because it is too large Load Diff