Skip to content

Commit 561d82b

Browse files
committed
3
Change-Id: Ia6f6f4b1812ca06e5a1863610cfc18a0c82a7a0c
1 parent 9512e9d commit 561d82b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/encoding/json/encode.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff 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
//

0 commit comments

Comments
 (0)