haibeey / Struct2Map

Struct2Map coverts go structs types to an instance of map[string]interface{}

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Struct2Map

Struct2Map coverts go structs types to an instance of map[string]interface{}

Usage: go get github.com/haibeey/struct2Map

val,err:=struct2map.Struct2Map(struct)
if err != nil {
    t.Errorf(err.Error())
}

About

Struct2Map coverts go structs types to an instance of map[string]interface{}


Languages

Language:Go 100.0%