config

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDev

func IsDev(env string) bool

IsDev return true if application is on dev stack

Types

type AppConfig

type AppConfig struct {
	Env string `default:"dev" env:"ENVIRONMENT"`
}

AppConfig struct contains WakaAPI needed env

func GetAppConfig added in v1.1.0

func GetAppConfig() AppConfig

GetAppConfig return initialize config structure with variable env

func (*AppConfig) IsDev

func (c *AppConfig) IsDev() bool

IsDev return true if application is on dev stack

Jump to

Keyboard shortcuts

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