utils

package
v0.0.0-...-9b02830 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE_LOGS_ENV_VAR = "LOGS_TO_FILE"
	DebugLogType      = "DEBUG"
	InfoLogType       = "INFO"
	ErrorLogType      = "ERROR"
)

Variables

This section is empty.

Functions

func ArrayContainsString

func ArrayContainsString(s []string, e string) bool

func BoolToInt

func BoolToInt(b bool) int

func CurrentDate

func CurrentDate() string

func CurrentDateWithFormat

func CurrentDateWithFormat(format string) string

func CurrentTimeMilliseconds

func CurrentTimeMilliseconds() int64

func LoadJsonFile

func LoadJsonFile(location string) ([]byte, error)

func LogMessage

func LogMessage(message string, logtype string)

func NanosecondsToMilliseconds

func NanosecondsToMilliseconds(nano int64) int64

func PreventCrash

func PreventCrash()

func RemoveStringFromArray

func RemoveStringFromArray(s []string, r string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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