X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c99ba4cdc8f6ff0be1847ffe4ec6f791f6b83396..1516ef6b939ed4db473053d73f3adf014c95ba21:/doc/sdk/go/index.html.textile.liquid diff --git a/doc/sdk/go/index.html.textile.liquid b/doc/sdk/go/index.html.textile.liquid index 58446a9eda..a06d518666 100644 --- a/doc/sdk/go/index.html.textile.liquid +++ b/doc/sdk/go/index.html.textile.liquid @@ -2,24 +2,27 @@ layout: default navsection: sdk navmenu: Go -title: "Go SDK" - +title: "Installation" ... +{% comment %} +Copyright (C) The Arvados Authors. All rights reserved. -The Go ("Golang":http://golang.org) SDK provides a generic set of wrappers so you can make API calls easily. - -h3. Installation +SPDX-License-Identifier: CC-BY-SA-3.0 +{% endcomment %} -You don't need to install anything. Just import the client like this. The go tools will fetch the relevant code and dependencies for you. - -{% code 'example_sdk_go_imports' as go %} +The Go ("Golang":http://golang.org) SDK provides a generic set of wrappers so you can make API calls easily. -If you need pre-release client code, you can use the latest version from the repo by following "these instructions.":https://arvados.org/projects/arvados/wiki/Go#Using-Go-with-Arvados +See "Arvados GoDoc":https://godoc.org/git.curoverse.com/arvados.git/sdk/go for detailed documentation. -h3. Example +h3. Installation -You can save this source as a .go file and run it: +Use @go get git.curoverse.com/arvados.git/sdk/go/arvadosclient@. The go tools will fetch the relevant code and dependencies for you. -{% code 'example_sdk_go' as go %} +{% codeblock as go %} +import ( + "git.curoverse.com/arvados.git/sdk/go/arvadosclient" + "git.curoverse.com/arvados.git/sdk/go/keepclient" +) +{% endcodeblock %} -A few more usage examples can be found in the "services/keepproxy":https://arvados.org/projects/arvados/repository/revisions/master/show/services/keepproxy and "sdk/go/keepclient":https://arvados.org/projects/arvados/repository/revisions/master/show/sdk/go/keepclient directories in the arvados source tree. +If you need pre-release client code, you can use the latest version from the repo by following "these instructions.":https://dev.arvados.org/projects/arvados/wiki/Go#Using-Go-with-Arvados