mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-02 19:20:23 +00:00
13 lines
289 B
Go
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":""}`
|