env

package
v0.0.0-...-8a90fd1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 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

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