env

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package env contains a function to load configuration from environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(prefix string, v interface{}) error

Load loads the configuration from the environment.

Types

type Unmarshaler added in v1.2.0

type Unmarshaler interface {
	UnmarshalEnv(prefix string, v string) error
}

Unmarshaler can be implemented to override the unmarshaling process.

Jump to

Keyboard shortcuts

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