env

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Files = []string{"ntt.env", "k3.env"}

Functions

func Getenv

func Getenv(key string) string

Lookup key in process environment. Is key begins with "NTT_" also lookup key with "K3_" prefix.

func Load

func Load(files ...string)

Load environment files ntt.env and k3.env

func LookupEnv

func LookupEnv(key string) (string, bool)

LookupEnv is like Getenv, but returns a true boolean when key exists

Types

type Env

type Env gotenv.Env

func Parse

func Parse(files ...string) Env

Parse environment files ntt.env and k3.env

Jump to

Keyboard shortcuts

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