Documentation ¶
Index ¶
- Variables
- func Def(v string) conf.GetOption
- func Key(key string) conf.BindArg
- func Param(param BindParam) conf.BindArg
- func RegisterConverter(fn Converter)
- func RegisterReader(r Reader, ext ...string)
- func RegisterSplitter(name string, fn Splitter)
- func SetValidator(i ValidatorInterface)
- func Tag(tag string) conf.BindArg
- type BindParam
- type Configuration
- type Converter
- type ParsedTag
- type Properties
- type ReadOnlyProperties
- type Reader
- type Splitter
- type ValidatorInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotExist = conf.ErrNotExist ErrInvalidSyntax = conf.ErrInvalidSyntax )
Functions ¶
func RegisterConverter ¶
func RegisterConverter(fn Converter)
RegisterConverter registers its converter for non-primitive type such as time.Time, time.Duration, or other user-defined value type.
func RegisterReader ¶
RegisterReader registers its Reader for some kind of file extension.
func RegisterSplitter ¶
RegisterSplitter registers a Splitter and named it.
Types ¶
type Configuration ¶
type Configuration = cfgr.Configuration
Configuration is a layered configuration manager.
func NewConfiguration ¶
func NewConfiguration() *Configuration
type Properties ¶ added in v0.0.2
type Properties = conf.Properties
Properties is a simple properties implementation.
func New ¶ added in v0.0.2
func New() *Properties
type ReadOnlyProperties ¶
type ReadOnlyProperties = cfgr.ReadOnlyProperties
ReadOnlyProperties is the interface for read-only properties.
type ValidatorInterface ¶
type ValidatorInterface = conf.ValidatorInterface
Click to show internal directories.
Click to hide internal directories.