Files
timmy-config/go/pkg/mod/github.com/mailru/easyjson@v0.9.0/tests/omitempty.go
2026-03-31 20:02:01 +00:00

13 lines
289 B
Go

package tests
//easyjson:json
type OmitEmptyDefault struct {
Field string
Str string
Str1 string `json:"s,!omitempty"`
Str2 string `json:",!omitempty"`
}
var omitEmptyDefaultValue = OmitEmptyDefault{Field: "test"}
var omitEmptyDefaultString = `{"Field":"test","s":"","Str2":""}`