Skip to content

Instantly share code, notes, and snippets.

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment