Documentation ¶
Index ¶
- func AtArrayPosition(val interface{}, array interface{}) (index int)
- func ConnectStorm(dbFilePath string) *storm.DB
- func CreateDirIfNotExist(dir string)
- func FatalIfError(err error, msgOrPattern string, args ...interface{})
- func GetEnvInt(key string, defaultVal int) int
- func GetEnvStr(key, defaultVal string) string
- func InArray(val interface{}, array interface{}) bool
- func LogIfError(err error, msgOrPattern string, args ...interface{}) bool
- func UnixToTime(timestamp string) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtArrayPosition ¶
func AtArrayPosition(val interface{}, array interface{}) (index int)
AtArrayPosition find the int position of val in a Slice
func ConnectStorm ¶
func ConnectStorm(dbFilePath string) *storm.DB
ConnectStorm Create database connection
func CreateDirIfNotExist ¶
func CreateDirIfNotExist(dir string)
CreateDirIfNotExist creates a directory if not found
func FatalIfError ¶
FatalIfError logs the error and Exit program on Error
func GetEnvInt ¶
GetEnvInt finds an ENV variable and converts to int, otherwise return default value
func InArray ¶
func InArray(val interface{}, array interface{}) bool
InArray checks is val exists in a Slice
func LogIfError ¶
LogIfError logs the error and returns true on Error. think as IfError
func UnixToTime ¶
UnixToTime create time.Time from string timestamp
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.