env

package
v1.5.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: MIT Imports: 1 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 interface {
	Get(key string) string
	Set(key string, value string) error
	Delete(key string) error
	Lookup(key string) (string, bool)
}

type Map

type Map map[string]string

Map is an Env backed by a map[string]string for testing etc

func (Map) Delete

func (env Map) Delete(key string) error

func (Map) Get

func (env Map) Get(key string) string

func (Map) Lookup

func (env Map) Lookup(key string) (string, bool)

func (Map) Set

func (env Map) Set(key string, value string) error

type OS

type OS struct{}

OS is an Env backed by real operating system environment

func (OS) Delete

func (OS) Delete(key string) error

func (OS) Get

func (OS) Get(key string) string

func (OS) Lookup

func (OS) Lookup(key string) (string, bool)

func (OS) Set

func (OS) Set(key string, value string) error

Jump to

Keyboard shortcuts

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