conv

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map2Struct

func Map2Struct(mapInstance map[string]interface{}, obj interface{}) error

Map2Struct return interface

func Struct2Map

func Struct2Map(obj interface{}) map[string]interface{}

Struct2Map return map

func TransformInterface

func TransformInterface(source interface{}, target interface{}) error

TransformInterface transform the source interface to target,target should be a pointer

Types

This section is empty.

Jump to

Keyboard shortcuts

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