config

package
v0.0.0-...-f83f314 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(name string) string

func SetEnv

func SetEnv(key, value string) error

Types

type Config

type Config struct {
	LogSetting Log
}

func (Config) Log

func (c Config) Log() Logger

type Configer

type Configer interface {
	Log() Logger
}

func EnvConfig

func EnvConfig() Configer

type Log

type Log struct {
}

func (Log) GetLevel

func (l Log) GetLevel() string

type Logger

type Logger interface {
	GetLevel() string
}

Jump to

Keyboard shortcuts

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