Versions in this module Expand all Collapse all v0 v0.1.1 Nov 28, 2018 Changes in this version + func AbsPathify(inPath string) string + func ExitOnErrorWithMessage(exitcode ExitCode.Enum, msg string) error + func ExitOnInvalidArgument() error + func ExitOnInvalidOption(msg string) error + func ExitOnRPC(msg string) error + func ExtractRetCode(err error) (string, int, error) + func GeneratePassword(length uint8) (string, error) + func LazyRemove(path string) error + func Plural(value int) string + func TitleFirst(value string) string + func UserConfirmed(msg string) bool + type Cache interface + ForceSet func(string, interface{}) error + ForceSetBy func(string, func() (interface{}, error)) error + Get func(string) (interface{}, bool) + GetOrDefault func(string, interface{}) interface{} + Reset func(string) Cache + Set func(string, interface{}) error + SetBy func(string, func() (interface{}, error)) error + func NewMapCache() Cache + type MapCache struct + func (c *MapCache) ForceSet(key string, value interface{}) error + func (c *MapCache) ForceSetBy(key string, by func() (interface{}, error)) error + func (c *MapCache) Get(key string) (value interface{}, ok bool) + func (c *MapCache) GetOrDefault(key string, def interface{}) (value interface{}) + func (c *MapCache) Reset(key string) Cache + func (c *MapCache) Set(key string, value interface{}) error + func (c *MapCache) SetBy(key string, by func() (interface{}, error)) error + type MyFormatter struct + func (f *MyFormatter) Format(entry *logrus.Entry) ([]byte, error)