This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //get type of current value | |
| typeOfKey := reflect.TypeOf(v).String() | |
| //every v, will be a string at the end | |
| switch typeOfKey { | |
| //if we have an complex type, resolve it | |
| case "map[string]interface {}": | |
| //convert value to its real type |
NewerOlder