util

package
v0.0.0-...-68900ed Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2016 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port        int    `envconfig:"port"`
	Environment string `envconfig:"environment"`
}

func (Config) Env

func (c Config) Env() (Env, error)

type Env

type Env string
const (
	EnvDev  Env = "dev"
	EnvProd Env = "prod"
)

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