You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config.go:107: invalid operation: nm == name (mismatched types reflect.StructTag and string)
config.go:179: cannot use name (type reflect.StructTag) as type string in function argument
Go's been updated so that tags on fields are not simple strings, but encoded key-value pairs.
type Foo struct {
bar int "This is not a description"
baz int "desc": "This is a correct tag"
}
The first tag cannot be retrieved from the reflection API.
The text was updated successfully, but these errors were encountered:
config.go:107: invalid operation: nm == name (mismatched types reflect.StructTag and string)
config.go:179: cannot use name (type reflect.StructTag) as type string in function argument
Go's been updated so that tags on fields are not simple strings, but encoded key-value pairs.
type Foo struct {
bar int "This is not a description"
baz int
"desc": "This is a correct tag"
}
The first tag cannot be retrieved from the reflection API.
The text was updated successfully, but these errors were encountered: