env

package
v0.0.0-...-882a99e Latest Latest
Warning

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

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

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