Documentation
¶
Index ¶
- func Get[T any](name string) (T, error)
- func GetDefault[T any](name string, defaultValue T) (T, error)
- func IsErrParsing(err error) bool
- func IsErrUnsupportedType(err error) bool
- func IsErrVarNotFound(err error) bool
- func MustGet[T any](name string) T
- func MustGetDefault[T any](name string, defaultValue T) T
- type ErrParsing
- type ErrUnsupportedType
- type ErrVarNotFound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefault ¶
func IsErrParsing ¶
func IsErrUnsupportedType ¶
func IsErrVarNotFound ¶
func MustGetDefault ¶
Types ¶
type ErrParsing ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.