loaderdefault

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) loader.Loader

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

func (Loader) Load added in v0.4.0

func (l Loader) Load(ctx context.Context, to any, opt *loader.Option) error

func (*Loader) LoadName added in v0.4.0

func (l *Loader) LoadName() loader.LoaderName

func (*Loader) LoadOrder added in v0.4.0

func (l *Loader) LoadOrder() loader.Order

type Option

type Option func(*option)

func WithHooks

func WithHooks(hooks ...loader.HookFunc) Option

WithHooks sets the hooks for the environment loader.

  • if return type matches the field type, return value is assigned to the field

func WithTagName

func WithTagName(tagName string) Option

Jump to

Keyboard shortcuts

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