MCPcopy Create free account
hub / github.com/go-json-experiment/json / OmitZeroStructFields

Function OmitZeroStructFields

alias.go:890–892  ·  view source on GitHub ↗

OmitZeroStructFields specifies that a Go struct should marshal in such a way that all struct fields that are zero are omitted from the marshaled output if the value is zero as determined by the "IsZero() bool" method if present, otherwise based on whether the field is the zero Go value. This is sema

(v bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestMarshalFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestMarshalFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…