app

package
v0.0.0-...-6f9dc6e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name string `toml:"name" yaml:"name" mapstructure:"name" env:"APP_NAME"`
	Addr string `toml:"address" yaml:"address" mapstructure:"address" env:"APP_ADDRESS"`
	Env  Env    `toml:"env" yaml:"env" mapstructure:"env" env:"APP_ENV"`
}

func NewDefaultApp

func NewDefaultApp() *App

type Env

type Env string
const (
	EnvDevelopment Env = "development"
	EnvTest        Env = "test"
	EnvProduction  Env = "production"
)

func (Env) String

func (e Env) String() string

Jump to

Keyboard shortcuts

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