Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIncompatibleInterface = errors.New("could not decode interface into Value")
Functions ¶
func TestRuneFromIFace ¶
Types ¶
type TypeInfo ¶ added in v0.0.18
type TypeInfo[T comparable] struct { Description string FromIFace func(iFace interface{}) (T, error) // FromInstance updates a T from an instance of itself. // This is particularly usefule for paths - when the user sets a scalar.Default of `~`, // we want to expand that into /path/to/home the same way we would // when updating from a string in the CLI FromInstance func(T) (T, error) FromString func(string) (T, error) // Initalized to the Empty value, but used for updating stuff in the container type Empty func() T }
Click to show internal directories.
Click to hide internal directories.