config

package
v0.0.0-...-463d603 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	App = &Application{}
)

Functions

func DecodeKey

func DecodeKey(key string, v interface{}) error

Decode one key from toml config

func Init

func Init() error

Types

type Application

type Application struct {
	Name string `toml:"name"`
	Host string `toml:"host"`
	Port int    `toml:"port"`
	Mode string `toml:"mode"`
}

Application config

func (*Application) IsDebug

func (a *Application) IsDebug() bool

func (*Application) IsRelease

func (a *Application) IsRelease() bool

Jump to

Keyboard shortcuts

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