--- layout: default navsection: sdk navmenu: Python title: Examples ... See "Arvados GoDoc":https://godoc.org/git.curoverse.com/arvados.git/sdk/go for detailed documentation. h2. Initialize SDK
import ( "git.curoverse.com/arvados.git/sdk/go/arvados" "git.curoverse.com/arvados.git/sdk/go/arvadosclient" } func main() { arv, err := arvadosclient.MakeArvadosClient() if err != nil { log.Fatalf("Error setting up arvados client %s", err.Error()) } }h2. create
var collection arvados.Collection err := api.Create("collections", Dict{"collection": Dict{"name": "create example"}}, &collection)h2. delete
var collection arvados.Collection err := api.Delete("collections", "aaaaa-bbbbb-ccccccccccccccc", Dict{}, &collection)h2. get
var collection arvados.Collection err := api.Get("collections", "aaaaa-bbbbb-ccccccccccccccc", Dict{}, &collection)h2. list
var collection arvados.Collection err := api.List("collections", Dict{}, &collection)h2. update
var collection arvados.Collection err := api.Update("collections", "aaaaa-bbbbb-ccccccccccccccc", Dict{"collection": Dict{"name": "update example"}}, &collection)h2. Get current user
var user arvados.User err := api.Get("users", "current", Dict{}, &user)h2. Example program You can save this source as a .go file and run it: