Versions in this module Expand all Collapse all v6 v6.0.0 Aug 29, 2025 Changes in this version + func Marshal(value interface{}) ([]byte, error) + func MarshalRoot(value interface{}) ([]byte, error) + func Port(from any, to any) error + func RegisterUnion(typ reflect.Type, discriminator string, variants ...UnionVariant) + func Unmarshal(raw []byte, to any) error + func UnmarshalRoot(raw []byte, to any) error + type Field struct + func (j Field) IsInvalid() bool + func (j Field) IsMissing() bool + func (j Field) IsNull() bool + func (j Field) Raw() string + type UnionUnmarshaler struct + Value T + func (c *UnionUnmarshaler[T]) UnmarshalJSON(buf []byte) error + type UnionVariant struct + DiscriminatorValue interface{} + Type reflect.Type + TypeFilter gjson.Type Other modules containing this package github.com/cloudflare/cloudflare-go github.com/cloudflare/cloudflare-go/v2 github.com/cloudflare/cloudflare-go/v3 github.com/cloudflare/cloudflare-go/v4 github.com/cloudflare/cloudflare-go/v5