Documentation ¶
Index ¶
- Variables
- func Decode(mapValue map[string]interface{}, structValue interface{}) (decoded interface{}, err error)
- func FailOnError(err error, msg string)
- func FunctionName() string
- func InArray(a string, list []string) bool
- func Println(messageLevel DebugLevel, message ...interface{})
- func PrintlnDebug(message ...interface{})
- func PrintlnError(message ...interface{})
- func PrintlnInfo(message ...interface{})
- func PrintlnMessage(message ...interface{})
- type DebugLevel
Constants ¶
This section is empty.
Variables ¶
View Source
var SHOW_MESSAGES = []DebugLevel{ERROR, INFO, MESSAGE, DEBUG}
Functions ¶
func Decode ¶
func Decode(mapValue map[string]interface{}, structValue interface{}) (decoded interface{}, err error)
Decode expects that mapValue is actually the same Type as structValue
func FailOnError ¶
func FunctionName ¶
func FunctionName() string
func Println ¶
func Println(messageLevel DebugLevel, message ...interface{})
func PrintlnDebug ¶
func PrintlnDebug(message ...interface{})
func PrintlnError ¶
func PrintlnError(message ...interface{})
func PrintlnInfo ¶
func PrintlnInfo(message ...interface{})
func PrintlnMessage ¶
func PrintlnMessage(message ...interface{})
Types ¶
type DebugLevel ¶
type DebugLevel int
const ( ERROR DebugLevel = 0 INFO DebugLevel = 1 MESSAGE DebugLevel = 2 DEBUG DebugLevel = 3 )
func (DebugLevel) ToInt ¶
func (d DebugLevel) ToInt() int
Click to show internal directories.
Click to hide internal directories.