Created
March 15, 2022 12:16
-
-
Save jfjensen/3a7948727e2b132e14099148ad255eab to your computer and use it in GitHub Desktop.
The saveJsonData() function
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
func saveJsonData(data binding.StringList) { | |
fmt.Println("Saving data to JSON file") | |
d, _ := data.Get() | |
jsonData, _ := json.Marshal(d) | |
ioutil.WriteFile("data.json", jsonData, 0644) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment