package convert

import "cuelang.org/go/internal/core/convert"

Package convert allows converting to and from Go values and Types.

Index

Functions

func GoTypeToExpr

func GoTypeToExpr(ctx *adt.OpContext, x interface{}) (adt.Expr, errors.Error)

func GoValueToExpr

func GoValueToExpr(ctx *adt.OpContext, nilIsTop bool, x interface{}) adt.Expr

func GoValueToValue

func GoValueToValue(ctx *adt.OpContext, x interface{}, nilIsTop bool) adt.Value

Source Files

go.go

Version
v0.5.0
Published
Apr 12, 2023
Platform
windows/amd64
Imports
18 packages
Last checked
1 hour ago

Tools for package owners.