config

package
Version: v0.0.0-...-c53acf6 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address        string
	LogLevel       string
	PreferredAPI   string
	ViaCepURL      string
	CepAbertoURL   string
	CepAbertoToken string
	CorreiosURL    string
}

Config hold configuration ..

func NewConfig

func NewConfig(loaders []Loader) (*Config, error)

NewConfig creates and returns new config structure ..

type Loader

type Loader interface {
	Load(*Config)
}

Loader defines the behaviour to load the values from multiple sources that will populate the config

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL