config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const EnvConfigAddress = "CONFIG_ADDRESS"
View Source
const EnvConfigKEY = "CONFIG_KEY"
View Source
const EnvConfigPath = "CONFIG_PATH"

Variables

This section is empty.

Functions

func GetByTree

func GetByTree(key string) ([]byte, error)

func GetLocalConfigPath

func GetLocalConfigPath() string

Get the local config file path from the command line

Types

type Config

type Config struct {
	*viper.Viper
}

Web

func NewConfig

func NewConfig(ConfigPath string) (*Config, error)

Jump to

Keyboard shortcuts

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