Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Dereference ¶
func Dereference[T any](ptr *T) T
Dereference safely dereferences a pointer into the underlying value or the empty value for the type.
Types ¶
type Configurable ¶
type Configurable interface { Configurer Validator Merger }
type Configurer ¶
type Configurer interface {
Configure(inv build.Invocation) error
}
Configurer is a type which can configure itself based on the current invocation. Note that 'Configure' must *not* set default values as this method might be called prior to complete resolution of user inputs.
type Merger ¶
Merger is a type which can merge from or into other objects (typically, but not always, of the same type).
type Validator ¶
type Validator interface {
Validate(inv build.Invocation) error
}
Validator is a type which can validate itself.
Click to show internal directories.
Click to hide internal directories.