load

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(source interface{}, opt *Option) error

Types

type Option

type Option struct {
	TagName      string
	Extractors   map[string]iface.Extractor
	Transformers map[string]iface.Transformer
}

type Tag

type Tag struct {

	// ;
	Required bool
	Default  string
	// contains filtered or unexported fields
}

func ParseTag

func ParseTag(tag string) (*Tag, error)

Jump to

Keyboard shortcuts

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