Documentation ¶ Index ¶ type Loader func New(opts ...Option) *Loader func (l Loader) Load(ctx context.Context, to any) error func (l Loader) LoadChu(ctx context.Context, to any, opts ...loader.Option) error type Option func WithHooks(hooks ...loader.HookFunc) Option func WithTagName(tagName string) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Loader ¶ type Loader struct { // contains filtered or unexported fields } func New ¶ func New(opts ...Option) *Loader func (Loader) Load ¶ func (l Loader) Load(ctx context.Context, to any) error func (Loader) LoadChu ¶ func (l Loader) LoadChu(ctx context.Context, to any, opts ...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 Source Files ¶ View all Source files default.go option.go Click to show internal directories. Click to hide internal directories.