config

package
v0.0.0-...-987cc92 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() error

Load configs from ./config/ yml files depending on APP_ENV.

Types

type Config

type Config struct {
	Region    string `mapstructure:"region"`
	TableName string `mapstructure:"table"`
}

Config holds all applications configs

func GetConfig

func GetConfig() Config

Get returns previously loaded configs

Jump to

Keyboard shortcuts

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