Sign in
chromium
/
external
/
github.com
/
json-iterator
/
go
/
dc3395f7704acbcc517732f1d957ac39d4e4547d
/
.
/
output_tests
/
struct_tags
/
omitempty
/
struct_json_marshal
/
types.go
blob: f6fb4375da7d173c9ee5120e0af8f3a01cdc2847 [
file
] [
log
] [
blame
]
package test
type typeForTest struct {
F jm `json:"f,omitempty"`
}
type jm struct{}
func (t *jm) UnmarshalJSON(b []byte) error {
return nil
}
func (t jm) MarshalJSON() ([]byte, error) {
return []byte(`""`), nil
}