...

Package convert

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

Overview ▾

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

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