config

package
v0.0.0-...-07c5cce Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPort       = "80"
	DefaultConfigFile = "/config/config.yaml"
)

Functions

func SetupEnv

func SetupEnv(f *Config) error

Types

type Config

type Config struct {
	Port       string `env:"PORT"`
	ConfigFile string `env:"CONFIG_FILE"`
}

func LoadConfig

func LoadConfig() (c Config, e error)

Jump to

Keyboard shortcuts

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