8 See "Arvados GoDoc":https://godoc.org/git.curoverse.com/arvados.git/sdk/go for detailed documentation.
10 In these examples, the site prefix is @aaaaa@.
16 "git.curoverse.com/arvados.git/sdk/go/arvados"
17 "git.curoverse.com/arvados.git/sdk/go/arvadosclient"
21 arv, err := arvadosclient.MakeArvadosClient()
23 log.Fatalf("Error setting up arvados client %s", err.Error())
31 var collection arvados.Collection
32 err := api.Create("collections", Dict{"collection": Dict{"name": "create example"}}, &collection)
38 var collection arvados.Collection
39 err := api.Delete("collections", "aaaaa-4zz18-ccccccccccccccc", Dict{}, &collection)
45 var collection arvados.Collection
46 err := api.Get("collections", "aaaaa-4zz18-ccccccccccccccc", Dict{}, &collection)
52 var collection arvados.Collection
53 err := api.List("collections", Dict{}, &collection)
59 var collection arvados.Collection
60 err := api.Update("collections", "aaaaa-4zz18-ccccccccccccccc", Dict{"collection": Dict{"name": "update example"}}, &collection)
67 err := api.Get("users", "current", Dict{}, &user)
72 You can save this source as a .go file and run it:
74 <notextile>{% code 'example_sdk_go' as go %}</notextile>
76 A few more usage examples can be found in the "services/keepproxy":https://dev.arvados.org/projects/arvados/repository/revisions/master/show/services/keepproxy and "sdk/go/keepclient":https://dev.arvados.org/projects/arvados/repository/revisions/master/show/sdk/go/keepclient directories in the arvados source tree.