package
1.5.0
Repository: https://github.com/hashicorp/go-cty.git
Documentation: pkg.go.dev

# Functions

Convert returns the result of converting the given value to the given type if an safe or unsafe conversion is available, or returns an error if such a conversion is impossible.
GetConversion returns a Conversion between the given in and out Types if a safe one is available, or returns nil otherwise.
GetConversionUnsafe returns a Conversion between the given in and out Types if either a safe or unsafe one is available, or returns nil otherwise.
MismatchMessage is a helper to return an English-language description of the differences between got and want, phrased as a reason why got does not conform to want.
Unify attempts to find the most general type that can be converted from all of the given types.
UnifyUnsafe is the same as Unify except that it may return unsafe conversions in situations where a safe conversion isn't also available.

# Type aliases

Conversion is a named function type representing a conversion from a value of one type to a value of another type.