pi-lens
Version:
Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo
24 lines (23 loc) • 367 B
YAML
id: unmarshal-tag-is-dash
valid:
- |
type T struct {
A string `json:"id"`
}
- |
type T struct {
B string `json:"-"`
}
- |
type T struct {
C string `json:"name,omitempty"`
}
invalid:
- |
type T struct {
B string `json:"-,omitempty"`
}
- |
type T struct {
C string `json:"-,"`
}