config

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type B

type B = []byte

type Ctx

type Ctx = context.T

type E

type E = error

type Env

type Env map[string]string

func GetEnv

func GetEnv(path string) (env Env, err error)

GetEnv reads a file expected to represent a collection of KEY=value in standard shell environment variable format - ie, key usually in all upper case no spaces and words separated by underscore, value can have any separator, but usually comma, for an array of values.

func (Env) LookupEnv

func (env Env) LookupEnv(key string) (value string, ok bool)

LookupEnv returns the raw string value associated with a provided key name, used as a custom environment variable loader for go-simpler.org/env to enable .env file loading.

type N

type N = int

type S

type S = string

Jump to

Keyboard shortcuts

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