config

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 6

Documentation

Index

Constants

View Source
const (
	// environment variable decide which profile to load
	CONF_PROFILE = "CONF_PROFILE"
)

Variables

View Source
var (
	ErrCfgItemNotFound = errors.New("config item not found")
)

Functions

func GetConfig

func GetConfig(inf Configurable) error

get parsed config by name

Types

type Configurable

type Configurable interface {
	GetConfigName() string
}

Jump to

Keyboard shortcuts

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