env

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](name string) (T, error)

func GetDefault

func GetDefault[T any](name string, defaultValue T) (T, error)

func IsErrParsing

func IsErrParsing(err error) bool

func IsErrUnsupportedType

func IsErrUnsupportedType(err error) bool

func IsErrVarNotFound

func IsErrVarNotFound(err error) bool

func MustGet

func MustGet[T any](name string) T

func MustGetDefault

func MustGetDefault[T any](name string, defaultValue T) T

Types

type ErrParsing

type ErrParsing struct {
	Name       string
	InnerError error
}

func NewErrParsing

func NewErrParsing(name string) *ErrParsing

func NewErrParsingWrapped

func NewErrParsingWrapped(name string, wrapped error) *ErrParsing

func (*ErrParsing) Error

func (err *ErrParsing) Error() string

func (*ErrParsing) Unwrap

func (err *ErrParsing) Unwrap() error

func (*ErrParsing) Wrap

func (err *ErrParsing) Wrap(wrapped error) *ErrParsing

type ErrUnsupportedType

type ErrUnsupportedType struct {
	Name  string
	Value any
}

func NewErrUnsupportedType

func NewErrUnsupportedType(name string) *ErrUnsupportedType

func (*ErrUnsupportedType) Error

func (err *ErrUnsupportedType) Error() string

type ErrVarNotFound

type ErrVarNotFound struct {
	Name string
}

func NewErrVarNotFound

func NewErrVarNotFound(name string) *ErrVarNotFound

func (*ErrVarNotFound) Error

func (err *ErrVarNotFound) Error() string

Jump to

Keyboard shortcuts

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