I've imported
_ "github.com/mitchellh/mapstructure"
Into a project of mine. However i'm not able to utilize the Decode function included in that library in order to convert a map interface to struct:
var result Person
err := Decode(input, &result)
if err != nil {
panic(err)
}
This basic call returns "undefined: Decode" error. Is there anything else to be done besides the import?
Thanks in advance!