package value
import "cuelang.org/go/internal/value"
Package value contains functions for converting values to internal types and various other Value-related utilities.
Index ¶
- func ConvertToContext(r *cue.Runtime) *cue.Context
- func ConvertToRuntime(c *cue.Context) *cue.Runtime
- func FromGoType(r *cue.Context, x interface{}) cue.Value
- func FromGoValue(r *cue.Context, x interface{}, nilIsTop bool) cue.Value
- func Make(ctx *adt.OpContext, v adt.Value) cue.Value
- func MakeError(r *runtime.Runtime, err errors.Error) cue.Value
- func ToInternal(v cue.Value) (*runtime.Runtime, *adt.Vertex)
- func UnifyBuiltin(v cue.Value, kind string) cue.Value
Functions ¶
func ConvertToContext ¶
func ConvertToRuntime ¶
func FromGoType ¶
func FromGoValue ¶
func Make ¶
Make wraps cue.MakeValue.
func MakeError ¶
func ToInternal ¶
func UnifyBuiltin ¶
UnifyBuiltin returns the given Value unified with the given builtin template.
Source Files ¶
value.go
- Version
- v0.5.0-beta.2
- Published
- Nov 30, 2022
- Platform
- windows/amd64
- Imports
- 8 packages
- Last checked
- 4 hours ago –
Tools for package owners.