Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LevelsNames ¶ added in v1.3.11
func LevelsNames() []string
LevelsNames returns the name of all available levels.
func LevelsToString ¶
LevelsToString converts a slice of levels to string (concatenated).
Types ¶
type Level ¶
type Level int
Level specification.
func FromString ¶
FromString returns a `Level` from a given string. It can also be used to validate if a given string, is a `Level`. An invalid level will return `None` as `Level`, and not ok (`false`).
func MustFromString ¶ added in v1.3.9
MustFromString returns a `Level` from a given string. Failure will log, and exit printing available levels.
Click to show internal directories.
Click to hide internal directories.