decodestruct

package
Version: v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package decodestruct

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(dto interface{}, tagName string, funcMap FuncMap) (interface{}, error)

Decode dto by tagName. It will auto call func in FuncMap by tag name and will auto set value by dto's field.

Types

type FuncMap

type FuncMap map[string]func() (interface{}, error)

FuncMap is the name with func.

Source Files

Jump to

Keyboard shortcuts

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