value

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 15 Imported by: 17

Documentation

Index

Constants

View Source
const DefaultPackageHeader = "package main\n"

DefaultPackageHeader describes the default package header for CUE files.

Variables

This section is empty.

Functions

func FieldPath

func FieldPath(paths ...string) cue.Path

FieldPath return the cue path of the given paths

func FillRaw added in v0.6.2

func FillRaw(val cue.Value, x string, paths ...string) (cue.Value, error)

FillRaw unify the value with the cue format string x at the given path.

func LookupValueByScript added in v0.6.2

func LookupValueByScript(val cue.Value, script string) (cue.Value, error)

LookupValueByScript reports the value by cue script.

func SetValueByScript added in v0.6.2

func SetValueByScript(base, v cue.Value, path ...string) (cue.Value, error)

SetValueByScript set the value v at the given script path. nolint:staticcheck

func UnmarshalTo added in v0.6.2

func UnmarshalTo(val cue.Value, x interface{}) error

UnmarshalTo unmarshal value into golang object

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL