File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -107,21 +107,6 @@ import (
107107//
108108// 2) Otherwise, the value is zero if it is the zero value for its type.
109109//
110- // Examples of struct field tags and their meanings:
111- //
112- // // Field appears in JSON as key "myName".
113- // Field time.Time `json:"myName"`
114- //
115- // // Field appears in JSON as key "myName" and
116- // // the field is omitted from the object if its value is zero,
117- // // as determined above.
118- // Field time.Time `json:"myName,omitzero"`
119- //
120- // // Field appears in JSON as key "Field" (the default), but
121- // // the field is skipped if zero.
122- // // Note the leading comma.
123- // Field time.Time `json:",omitzero"`
124- //
125110// If both "omitempty" and "omitzero" are specified, the field will be omitted
126111// if the value is either empty or zero (or both).
127112//
You can’t perform that action at this time.
0 commit comments