Documentation ¶
Index ¶
- func Bool(name string, value cue.Value) (bool, error)
- func Extract[V any](value cue.Value, key string, extract Extractor[V]) (V, bool, error)
- func Int(name string, value cue.Value) (int64, error)
- func ReadYAMLFileWithSpec(spec, filename string) (cue.Value, error)
- func String(name string, value cue.Value) (string, error)
- type Extractor
- func Either[V any](extracts []Extractor[V]) Extractor[V]
- func List[V any](extract Extractor[V]) Extractor[[]V]
- func ListOrDict[V any](extract Extractor[V]) Extractor[[]V]
- func Map[V any](extract Extractor[V]) Extractor[map[string]V]
- func OneOrMore[V any](extract Extractor[V]) Extractor[[]V]
- func ParseString[V any](extract func(string) (V, error)) Extractor[V]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Extractor ¶ added in v0.4.0
func ListOrDict ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.