Skip to content

Instantly share code, notes, and snippets.

@vasa-develop
Created January 4, 2020 19:11
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/a09a7a63ebff7379c3698afbda8d5040 to your computer and use it in GitHub Desktop.
Save vasa-develop/a09a7a63ebff7379c3698afbda8d5040 to your computer and use it in GitHub Desktop.
SimpleAsWater: Hands-on IPLD Tutorial in Golang
// Fetch the details by reading the DAG for key "inputKey"
fmt.Printf("READ: Value for key \"%s\" is: ", inputKey)
res, err := GetDag(cid, inputKey)
if err != nil {
fmt.Println(err)
}
fmt.Println(res)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment