config

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogLevelHook

func LogLevelHook(f reflect.Type, t reflect.Type, data interface{}) (interface{}, error)

Types

type Config

type Config struct {
	Log LogConfig `mapstructure:"log"`
}

func Parse

func Parse(v *viper.Viper) (Config, error)

type LogConfig

type LogConfig struct {
	Filename string    `mapstructure:"filename"`
	Level    log.Level `mapstructure:"level"`
}

Jump to

Keyboard shortcuts

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