config

package
v0.0.0-...-cd62ce9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

Jump to

Keyboard shortcuts

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