config

package
v0.0.0-...-91518e1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct{}

Config is the configuration handler.

func New

func New(filepath ...string) (c Config, err error)

New loads a .env file.

func (Config) Get

func (Config) Get(key string) string

Get retrieves an environment variable.

func (Config) Set

func (Config) Set(key, value string)

Set sets an environment variable.

Jump to

Keyboard shortcuts

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