config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvRegularRegex = regexp.MustCompile(`\${(?P<ENV>[_A-Z0-9]+):(?P<DEF>.*)}`)

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func Load

func Load(file string) (*Config, error)

Load config from file

func (*Config) GetTopLevelKeys

func (c *Config) GetTopLevelKeys() []string

GetTopLevelKeys from config

func (*Config) UnMarshalWithKey

func (c *Config) UnMarshalWithKey(key string, val interface{}) error

UnMarshalWithKey to the config value reference

Jump to

Keyboard shortcuts

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