Documentation
¶
Overview ¶
Package scurvy contains common utility functions.
Package scurvy contains common utility functions.
Package scurvy contains common utility functions.
Package scurvy contains common utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface {
IsSet(ns, key string) bool
GetBool(ns, key string) (bool, error)
GetInt(ns, key string) (int, error)
GetString(ns, key string) (string, error)
GetStringSlice(ns, key string) ([]string, error)
GetStringMap(ns, key string) (map[string]string, error)
SetValue(ns, key string, value interface{}) error
}
Config encapsulates a config store.
type PortHole ¶
type PortHole interface {
Trace(string, ...interface{})
Debug(string, ...interface{})
Info(string, ...interface{})
Warn(string, ...interface{})
Error(string, ...interface{})
Fatal(string, ...interface{})
Panic(string, ...interface{})
GetLogLevel() string
Magenta(string) string
Cyan(string) string
Red(string) string
Yellow(string) string
Blue(string) string
Green(string) string
Gray(string) string
Bold(string) string
IsConsoleTTY() bool
IsConsoleColored() bool
ConsoleWrite(string, ...interface{}) error
Config() Config
}
PortHole encapsulates an execution context.