Last active
September 11, 2019 14:49
-
-
Save Pomeha/de8c875f50d324f9384db684b22cec90 to your computer and use it in GitHub Desktop.
This file contains 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
var dat map[string]interface{} | |
var parseString string | |
if cachedPosts != nil { | |
parseString = fmt.Sprintf("%s", someJsonString) | |
if err = json.Unmarshal([]byte(parseString), &dat); err != nil { | |
panic(err) | |
} | |
} | |
// And now you get perfect interfaced json! Lucky you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment