Last active
December 16, 2021 17:43
-
-
Save vaguecoder/fd9b1bdc11e22c2948a0289498d138a1 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
jsonData, err = json.Marshal(data) | |
if err != nil { | |
// Handle Error | |
} | |
err = ioutil.WriteFile("filename.json", jsonData, 0777) | |
if err != nil { | |
// Handle Error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment