Skip to content

Instantly share code, notes, and snippets.

@vasa-develop
Created January 4, 2020 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vasa-develop/431e31ff778e1b9369a73e7ef4ddf8da to your computer and use it in GitHub Desktop.
Save vasa-develop/431e31ff778e1b9369a73e7ef4ddf8da to your computer and use it in GitHub Desktop.
SimpleAsWater: Hands-on IPLD Tutorial in Golang
// 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