env

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentReaderWrapper

type EnvironmentReaderWrapper struct{}

EnvironmentReaderWrapper Wraps the os dependency that reads environment variables

func (*EnvironmentReaderWrapper) GetenvBytes

func (reader *EnvironmentReaderWrapper) GetenvBytes(key string, shouldPanicOnError bool) ([]byte, error)

GetenvBytes Get bytes value from environment

func (EnvironmentReaderWrapper) GetenvInt

func (reader EnvironmentReaderWrapper) GetenvInt(key string, defaultVal int) (int, error)

GetenvInt Get integer value from environment

func (EnvironmentReaderWrapper) GetenvIntStrict

func (reader EnvironmentReaderWrapper) GetenvIntStrict(key string) int

GetenvIntStrict Get integer value from environment with panic on failure

func (EnvironmentReaderWrapper) GetenvStr

func (reader EnvironmentReaderWrapper) GetenvStr(key string, defaultVal string) (string, error)

GetenvStr Get string value from environment

func (EnvironmentReaderWrapper) GetenvStrStrict

func (reader EnvironmentReaderWrapper) GetenvStrStrict(key string) string

GetenvStrStrict Get string value from environment with panic on failure

Jump to

Keyboard shortcuts

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