config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 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 Env

type Env map[st]st

func GetEnv

func GetEnv(path st) (env Env, err er)

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 st) (value st, ok bo)

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