# Functions
AlloyType returns the Alloy type from the Go type.
Array creates an array from the given values.
Bool returns a Value from a bool.
Decode assigns a Value val to a Go pointer target.
DecodeCopy is like Decode but a deep copy of val is always made.
Encapsulate creates a new Capsule value from v.
Encode creates a new Value from v.
Float returns a Value from a float64.
FromRaw converts a reflect.Value into an Alloy Value.
Func makes a new function Value from f.
Int returns a Value from an int64.
Object returns a new value from m.
String returns a Value from a string.
Uint returns a Value from a uint64.
WalkError walks err for all value-related errors in this package.
# Constants
NumberKindFloat represents both float32 and float64.
NumberKindInt represents an int-like type (e.g., int, int8, etc.).
NumberKindUint represents a uint-like type (e.g., uint, uint8, etc.).
Supported Type values.
Supported Type values.
Supported Type values.
Supported Type values.
Supported Type values.
Supported Type values.
Supported Type values.
Supported Type values.
# Variables
ErrNoConversion is returned by implementations of ConvertibleCapsule to denote that a custom conversion from or to a specific type is unavailable.
Null is the null value.
# Structs
ArgError is used to report on an invalid argument to a function.
ElementError is used to report on an error inside of an array.
Error is used for reporting on a value-level error.
FieldError is used to report on an invalid field inside an object.
MissingKeyError is used for reporting that a value is missing a key.
Number is a generic representation of Go numbers.
TypeError is used for reporting on a value having an unexpected type.
Value represents an Alloy value.
# Interfaces
Capsule is a marker interface for Go values which forces a type to be represented as an Alloy capsule.
ConvertibleFromCapsule is a Capsule which supports custom conversion rules from any Go type which is not the same as the capsule type.
ConvertibleIntoCapsule is a Capsule which supports custom conversion rules into any Go type which is not the same as the capsule type.
The Defaulter interface allows a type to implement default functionality in Alloy configuration evaluation.
Unmarshaler is a custom type which can be used to hook into the decoder.
The Validator interface allows a type to implement validation functionality in Alloy evaluation.
# Type aliases
NumberKind categorizes a type of Go number.
RawFunction allows creating function implementations using raw Alloy values.
Type represents the type of an Alloy value loosely.