Documentation ¶
Index ¶
Constants ¶
View Source
const LevelTrace slog.Level = -5
Variables ¶
This section is empty.
Functions ¶
func FormatStrings ¶ added in v1.15.0
func FormatStrings() []string
FormatStrings returns a slice of all String values of the enum
func LevelStrings ¶ added in v1.15.0
func LevelStrings() []string
Types ¶
type Format ¶ added in v1.15.0
type Format uint8
func FormatString ¶ added in v1.15.0
FormatString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func FormatValues ¶ added in v1.15.0
func FormatValues() []Format
FormatValues returns all values of the enum
func (Format) IsAFormat ¶ added in v1.15.0
IsAFormat returns "true" if the value is listed in the enum definition. "false" otherwise
func (Format) MarshalText ¶ added in v1.15.0
MarshalText implements the encoding.TextMarshaler interface for Format
func (*Format) UnmarshalText ¶ added in v1.15.0
UnmarshalText implements the encoding.TextUnmarshaler interface for Format
Click to show internal directories.
Click to hide internal directories.