Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsMap ¶
AsMap returns a flat map of all resolved values across all sections. It wraps vs.GetDataMap().
func DecodeInto ¶
func DecodeInto(v *SectionValues, dst any) error
DecodeInto decodes resolved values from a single section into the destination struct. It wraps v.InitializeStruct(dst).
Types ¶
type SectionValues ¶
type SectionValues = layers.ParsedLayer
SectionValues is a type alias for layers.ParsedLayer. SectionValues contains resolved values for a single schema section.
type Values ¶
type Values = layers.ParsedLayers
Values is a type alias for layers.ParsedLayers. Values contains resolved values for all schema sections.
func New ¶
func New(options ...ValuesOption) *Values
New creates a new collection of resolved values. It wraps layers.NewParsedLayers.
type ValuesOption ¶
type ValuesOption = layers.ParsedLayersOption
ValuesOption is a type alias for layers.ParsedLayersOption. ValuesOption configures a Values collection during construction.
func WithSectionValues ¶
func WithSectionValues(slug string, v *SectionValues) ValuesOption
WithSectionValues returns a ValuesOption that adds a section's values to a Values collection. It wraps layers.WithParsedLayer.