Created
January 4, 2020 19:09
-
-
Save vasa-develop/431e31ff778e1b9369a73e7ef4ddf8da to your computer and use it in GitHub Desktop.
SimpleAsWater: Hands-on IPLD Tutorial in Golang
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
// Converting into JSON object | |
entryJSON, err := json.Marshal(m) | |
if err != nil { | |
fmt.Println(err) | |
} | |
// Display the marshaled JSON object before sending it to IPFS | |
jsonStr := string(entryJSON) | |
fmt.Println("The JSON object of your key-value entry is:") | |
fmt.Println(jsonStr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment