Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Getenv ¶
Getenv reads the value from environment variable named by key. If the key is not defined as environment variable the default string is returned.
func Loop ¶
Loop wraps a function in an endless loop and calls the function in the defined interval.
func RunOnce ¶
func RunOnce(function func(), id any)
RunOnce starts a function if this function not currently running. RunOnce knows, with function is currently running (identified by id) and skips starting the function again.
func StructToMap ¶
StructToMap converts a struct to map of struct properties
func UnmarshalFile ¶
UnmarshalFile returns the content of the file as object of type T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.