projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18887: it is OK for controller to forward the local anymous token,
[arvados.git]
/
doc
/
_includes
/
_example_sdk_go.liquid
diff --git
a/doc/_includes/_example_sdk_go.liquid
b/doc/_includes/_example_sdk_go.liquid
index 08124e661066f43da6fb1637a55d2f73ecb4b4eb..c4aec147c13a31163020a4f711c9998f343b329b 100644
(file)
--- a/
doc/_includes/_example_sdk_go.liquid
+++ b/
doc/_includes/_example_sdk_go.liquid
@@
-1,3
+1,7
@@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: CC-BY-SA-3.0
+
package main
package main
@@
-9,7
+13,7
@@
package main
import (
"fmt"
import (
"fmt"
- "git.
curoverse.com
/arvados.git/sdk/go/arvadosclient"
+ "git.
arvados.org
/arvados.git/sdk/go/arvadosclient"
"log"
)
"log"
)
@@
-31,6
+35,9
@@
func main() {
//
type user struct {
//
type user struct {
+ // Remember to start each field name with a capital letter,
+ // otherwise it won't get populated by the arvados client because
+ // the field will be invisible to it.
Uuid string `json:"uuid"`
FullName string `json:"full_name"`
}
Uuid string `json:"uuid"`
FullName string `json:"full_name"`
}