fatih / structs

Utilities for Go structs

Home Page:http://godoc.org/github.com/fatih/structs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

structs.Map return empty map

hawkli-1994 opened this issue · comments

commented
test := &commonlyUsedRedisTable{protocol: "test", status: "test"}
m := structs.Map(test)
fmt.Println(m)

   print: map[]

The first example shows unexported fields are not included in the map.

Close this issue?

Hi,

Unfortunately, I'm archiving this project and will no longer maintaining it. For more information, please read my blog post: Taking an indefinite sabbatical from my projects.

Thanks for the feedback and contribution.