lib

package
v0.0.0-...-b8e6cb6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 8 Imported by: 26

Documentation

Index

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 FailOnError(err error, msg string)

func FunctionName

func FunctionName() string

func InArray

func InArray(a string, list []string) bool

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL