structer

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Override = iota
	OverrideWithZeroValue
)

Variables

This section is empty.

Functions

func Merge

func Merge(dst, src interface{}, option ...int) error

Merge a struct by struct. Is just a wrapper for the awesome mergo (https://github.com/imdario/mergo). For more details and options check out the github page.

func MergeByMap

func MergeByMap(dst, src interface{}, option ...int) error

MergeByMap - merges a struct by map. Is just a wrapper for the awesome mergo (https://github.com/imdario/mergo). For more details and options check out the github page.

func ParseTag

func ParseTag(tag string) map[string]string

ParseTag will return a map with the configuration. If the value is empty, an empty string will be added. a:b;c = map["a"]"b",map["c"]""

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳