Created
January 22, 2020 22:10
-
-
Save vasa-develop/b76d2461e79caedfbab20aa10b1ea7c3 to your computer and use it in GitHub Desktop.
SimpleAsWater Tutorial: Hands On IPLD Tutorial: PART 2
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
// 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