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

Functions

func ConvertToContext

func ConvertToContext[Ctx *cue.Runtime | *cue.Context](ctx Ctx) *cue.Context

func FromGoType

func FromGoType(r *cue.Context, x interface{}) cue.Value

func FromGoValue

func FromGoValue(r *cue.Context, x interface{}, nilIsTop bool) cue.Value

func Make

func Make(ctx *adt.OpContext, v adt.Value) cue.Value

Make wraps cue.MakeValue.

func ToInternal

func ToInternal(v cue.Value) (*runtime.Runtime, *adt.Vertex)

func UnifyBuiltin

func UnifyBuiltin(v cue.Value, kind string) cue.Value

UnifyBuiltin returns the given Value unified with the given builtin template.

Source Files

value.go

Version
v0.12.0 (latest)
Published
Jan 30, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
8 hours ago

Tools for package owners.