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

Function OmitZeroStructFields

options.go:182–188  ·  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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…