config

package
v0.0.0-...-065b62e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnv

func LoadEnv() error

Load .env file in root path of module

func MustLoadEnv

func MustLoadEnv()

func RootDir

func RootDir() string

RootDir returns root dir of project

Types

type Config

type Config struct {
	Service Service
}

func Load

func Load() (*Config, error)

Load returns the settings from the environment.

type Service

type Service struct {
	Name        string
	Environment string
	Env         string
}

Jump to

Keyboard shortcuts

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