Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Names = []string{
"Bool",
"Int",
"Uint",
"Duration",
"Float",
"String",
"List",
}
Names provides the string associated with the Concrete type.
Functions ¶
Types ¶
type Concrete ¶
type Concrete interface {
Bool() bool
Int() int64
Uint() uint64
Duration() time.Duration
Float() float64
String() string
List() []string
}
Concrete should return a value for the correct concrete type and panic otherwise, except for String which should always yield a value.
type Desc ¶ added in v0.1.6
type Desc struct {
Name, Group, Description, Documentation, Default string
Type Type
Tags, Aliases []string
}
Desc is the named field form of Metadata for generating a Metadata
type Item ¶
type Item interface {
Name() string
Type() Type
Aliases() []string
Group() string
Tags() []string
Description() string
Documentation() string
Default() string
FromString(string) error
Meta() *Metadata
Concrete
}
Item provides accessors for a Config item type's metadata and current contents, including a generic string format setter.
type Metadata ¶ added in v0.1.6
Metadata stores the information about the types.Item for documentation purposes
func New ¶ added in v0.1.6
New allows you to create a Metadata with a sparsely filled, named field struct literal.
name, type, group and tags all will be canonicalized to lower case.
func (*Metadata) Description ¶ added in v0.1.6
func (*Metadata) Documentation ¶ added in v0.1.6
Click to show internal directories.
Click to hide internal directories.