config

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load[T any](cfg *T, extra ...map[reflect.Type]env.ParserFunc) error

Load parses environment variables into cfg using `env` struct tags.

Built-in parsers:

  • *net.IPNet — parsed via net.ParseCIDR
  • ed25519.PublicKey — decoded from standard base64

Pass extra to register additional type parsers.

Types

type ParserFunc

type ParserFunc = env.ParserFunc

ParserFunc is an alias for the env package's parser function type.

Jump to

Keyboard shortcuts

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