Documentation
¶
Index ¶
- Variables
- func DebugPrintInfo(v reflect.Value)
- func DeepCopy(dst, src interface{}) error
- func DefaultDataDir() string
- func EnsureDir(dir string, mode os.FileMode) error
- func Exit(s string)
- func HomeDir() string
- func Inject(obj interface{}, key string, val interface{}) error
- func IsFileExist(path string) bool
- func IsFileNotExist(path string) bool
- func MustWriteFile(filePath string, contents []byte, mode os.FileMode)
- func RegisterCustomValidateType(fn validator.CustomTypeFunc, types ...interface{})
- func Rootify(path, root string) string
- func TrapSignal(cb func())
- func Validate(obj interface{}, tags ...string) error
- func WriteFile(filePath string, contents []byte, mode os.FileMode) error
- type Message
- type Msg
Constants ¶
This section is empty.
Variables ¶
View Source
var Fmt = fmt.Sprintf
Fmt shorthand, XXX DEPRECATED
Functions ¶
func DebugPrintInfo ¶ added in v0.0.4
func DefaultDataDir ¶ added in v0.0.4
func DefaultDataDir() string
DefaultDataDir is the default data directory
func MustWriteFile ¶ added in v0.0.4
func RegisterCustomValidateType ¶ added in v0.0.4
func RegisterCustomValidateType(fn validator.CustomTypeFunc, types ...interface{})
func TrapSignal ¶ added in v0.0.4
func TrapSignal(cb func())
TrapSignal catches the SIGTERM and executes cb function. After that it exits with code 1.
Types ¶
Click to show internal directories.
Click to hide internal directories.