Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SimpleAsWater Tutorial: Hands On IPLD Tutorial: PART 2
// GetDocument handles READ operations of a DAG entry by CID, returning the corresponding document
func GetDocument(ref, key string) (out SampleStruct, err error) {
err = sh.DagGet(ref+"/"+key, &out)
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment