hiboot: hidevops.io/hiboot/pkg/utils/mapstruct Index | Files

package mapstruct

import "hidevops.io/hiboot/pkg/utils/mapstruct"

Package mapstruct provides utilities that decode map and inject values into struct

Index

Package Files

mapstruct.go

func Decode Uses

func Decode(to interface{}, from interface{}, opts ...func(*mapstructure.DecoderConfig)) error

Decode decode (convert) map to struct

func DecodeStructToMap Uses

func DecodeStructToMap(val interface{}) (sm map[string]interface{}, ok bool)

DecodeStructToMap TODO: should improve the performance

func WithAnnotation Uses

func WithAnnotation(config *mapstructure.DecoderConfig)

func WithSquash Uses

func WithSquash(config *mapstructure.DecoderConfig)

func WithWeaklyTypedInput Uses

func WithWeaklyTypedInput(config *mapstructure.DecoderConfig)

Package mapstruct imports 5 packages (graph) and is imported by 9 packages. Updated 2019-09-15. Refresh now. Tools for package owners.