Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvOrDefault ¶
GetEnvOrDefault gets an environment variable value by key or return some default value.
func GetFinalElementOfPath ¶
GetFinalElementOfPath returns the final element of a path of the root. Makes use of the filepath library. Example path: /this/is/my/path returns path.
func InitLoggerWithLevel ¶
InitLoggerWithLevel creates a pointer to a logrus object. The logger defaults to the DEBUG level unless another logging level is passed as a function argument, or is specified under the environment variable LOG_LEVEL. the logger is configured to log to stdout. Returns an error if any.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.