loaderdefault

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 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) func() loader.Loader

Types

type Loader

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

func (Loader) LoadChu

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

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