Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
Change-Id: Ia6f6f4b1812ca06e5a1863610cfc18a0c82a7a0c
  • Loading branch information
callthingsoff committed Sep 26, 2024
1 parent 7732db3 commit e61c805
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/encoding/json/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,6 @@ import (
//
// 2) Otherwise, the value is zero if it is the zero value for its type.
//
// Examples of struct field tags and their meanings:
//
// // Field appears in JSON as key "myName".
// Field time.Time `json:"myName"`
//
// // Field appears in JSON as key "myName" and
// // the field is omitted from the object if its value is zero,
// // as determined above.
// Field time.Time `json:"myName,omitzero"`
//
// // Field appears in JSON as key "Field" (the default), but
// // the field is skipped if zero.
// // Note the leading comma.
// Field time.Time `json:",omitzero"`
//
// If both "omitempty" and "omitzero" are specified, the field will be omitted
// if the value is either empty or zero (or both).
//
Expand Down

0 comments on commit e61c805

Please sign in to comment.