pkg

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 11 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDocToHelpSystem added in v0.1.20

func AddDocToHelpSystem(helpSystem *help.HelpSystem) error

func InitLogger

func InitLogger() error

func InitLoggerWithConfig

func InitLoggerWithConfig(config *LogConfig) error

func InitViper

func InitViper(appName string, rootCmd *cobra.Command) error

func InitViperInstanceWithAppName added in v0.1.20

func InitViperInstanceWithAppName(appName string, configFile string) (*viper.Viper, error)

func InitViperWithAppName added in v0.1.15

func InitViperWithAppName(appName string, configFile string) error

Types

type LogConfig

type LogConfig struct {
	WithCaller bool
	Level      string
	LogFormat  string
	LogFile    string
}

Jump to

Keyboard shortcuts

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