config

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevelFlag    = "log-level"
	DefaultLogLevel = log.InfoLevel

	LogFormatFlag    = "log-format"
	DefaultLogFormat = "text"
)

Variables

This section is empty.

Functions

func InitLog

func InitLog(flags *flag.FlagSet)

func RegisterLogFlags

func RegisterLogFlags(cmd *cobra.Command)

Types

type ContextKey added in v1.5.0

type ContextKey uint8
const (
	URLContextKey ContextKey = iota
)

Jump to

Keyboard shortcuts

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