config

package
v0.0.0-...-9110ccf Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string // This can use `go build -ldflags="-X 'github.com/bizshuk/gosdk/config.Version=$(cat version)'"` to inject version
	Profile string // dev, qa, cert, prod, default: profile in .env
)

Functions

func ConfigFileName

func ConfigFileName(envs []string) []string

Load more config from `profile` in .env and manually added

func Default

func Default()

func GetProfile

func GetProfile() string

func LoadEnvConfig

func LoadEnvConfig(filenames []string)

func LoadViperConfig

func LoadViperConfig()

func LoadViperProfile

func LoadViperProfile() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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