config

package
v0.0.0-...-e4e151b Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(path string, config *AppConfig) error

LoadConfig reads configuration from file or environment variables.

Types

type AppConfig

type AppConfig struct {
	MongoURI   string `mapstructure:"MONGO_URI"`
	DBName     string `mapstructure:"DB_NAME"`
	NotesTable string `mapstructure:"NOTES_TABLE"`
}

AppConfig stores all configuration of the application.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳