envconfig

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

Close close the default config reader.

func Read

func Read(ptr interface{}, opts ...config.ReadOption) error

Read read configuration from environment to the target ptr.

Types

type Config

type Config struct {
}

Config implements config.Reader.

func (*Config) Close

func (env *Config) Close() error

Close implements config.Reader interface.

func (*Config) Read

func (env *Config) Read(ptr interface{}, opts ...config.ReadOption) error

Read implements config.Reader interface.

Jump to

Keyboard shortcuts

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