Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Concrete ¶
type Concrete struct { Bool func() bool Duration func() time.Duration Float func() float64 Integer func() int64 List func() []string Text func() string }
Concrete is a struct of functions that return the concrete values. Only the intended type will return a value, the rest always return zero.
func NewConcrete ¶
func NewConcrete() Concrete
NewConcrete provides a Concrete with all functions returning zero values
type Config ¶
func (Config) MarshalText ¶
MarshalText produces a standard TOML format document via toml.Marshal that can be used to toml.UnmarshalTOML back into the Config.
type Option ¶
type Option interface { FromString(s string) (e error) String() (s string) Value() (c Concrete) Type() (t meta.Type) Meta() (md meta.Metadata) }
Option interface reads and writes string formats for options and returns a Concrete value to the appropriate concrete value, with the type indicated.
Click to show internal directories.
Click to hide internal directories.