decodermap

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

func New

func New(opts ...Option) *Map

func (*Map) Decode

func (m *Map) Decode(input, output interface{}) error

type Option

type Option func(*option)

func WithHooks

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

WithHooks sets the hooks for map to struct conversion.

func WithTag

func WithTag(tag string) Option

WithTag sets the tag for the configuration.

  • default is "cfg"

func WithWeaklyDashUnderscore

func WithWeaklyDashUnderscore(v bool) Option

WithWeaklyDashUnderscore sets the weakly dash underscore option.

  • default is false

func WithWeaklyIgnoreSeperator

func WithWeaklyIgnoreSeperator(v bool) Option

WithWeaklyIgnoreSeperator sets the weakly ignore separator option.

  • default is true

Jump to

Keyboard shortcuts

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