convert

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCtyValue

func FromCtyValue(val cty.Value, target reflect.Type) (reflect.Value, error)

func ToCtyType

func ToCtyType(from reflect.Type) (cty.Type, error)

func ToCtyValue

func ToCtyValue(val reflect.Value, want cty.Type) (cty.Value, error)

Types

type Path

type Path []*Step

func (Path) Append

func (p Path) Append(key string) Path

func (Path) String

func (p Path) String() string

func (Path) WithIndex

func (p Path) WithIndex(index string) Path

type PathError

type PathError struct {
	Err  error
	Path Path
}

func (*PathError) Error

func (p *PathError) Error() string

type Step

type Step struct {
	Key     string
	Indices []string
}

Jump to

Keyboard shortcuts

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