Documentation ¶
Index ¶
- func Default(opts ...interface{})
- func GetPath(dirType, fn string) string
- func Init(dir string)
- func LogOut(name string) io.WriteCloser
- func Name() string
- func ParseFlag(name, value, desc string)
- func ReadBytes(dirType, fn string) ([]byte, error)
- func ReadConfig(name string, opt interface{}) error
- func ReadToml(dirType, name string, v interface{}) error
- func ReadYaml(dirType, name string, v interface{}) error
- func Root() string
- func SinglonCheck() bool
- func Valid(opts ...interface{}) error
- func WaitSignal()
- func WriteBytes(dirType, fn string, data []byte) error
- func WriteToml(dirType, name string, v interface{}) error
- func WriteYaml(dirType, name string, v interface{}) error
- type DefaultConfig
- type ValidConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogOut ¶
func LogOut(name string) io.WriteCloser
func ReadConfig ¶
func WriteBytes ¶
Types ¶
type DefaultConfig ¶
type DefaultConfig interface {
Default()
}
type ValidConfig ¶
type ValidConfig interface {
Valid() error
}
Click to show internal directories.
Click to hide internal directories.