config

package
v0.0.0-...-d1f57cd Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDir

func GetConfigDir() string

func LoadConfigFile

func LoadConfigFile(name string) (handle *os.File, created bool, createErr error)

func ParseFlags

func ParseFlags(handlers ...func() error)

func SetLogLevel

func SetLogLevel(level logrus.Level)

func SetupLogger

func SetupLogger()

Types

type Config

type Config struct {
	DataFolder string `yaml:"data-folder,omitempty"`
}

func LoadConfig

func LoadConfig(name string) (*Config, error)

Jump to

Keyboard shortcuts

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