From: Tom Clegg Date: Tue, 18 Oct 2022 17:03:36 +0000 (-0400) Subject: 18863: gofmt X-Git-Tag: 2.5.0~54^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/b89ab7f9270acfabe9139d14d7071cf117b39bd4?ds=sidebyside 18863: gofmt Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- diff --git a/sdk/go/arvados/client.go b/sdk/go/arvados/client.go index 4dead0ada9..4d140517e5 100644 --- a/sdk/go/arvados/client.go +++ b/sdk/go/arvados/client.go @@ -153,10 +153,10 @@ func NewClientFromConfig(cluster *Cluster) (*Client, error) { // Space characters are trimmed when reading the settings file, so // these are equivalent: // -// ARVADOS_API_HOST=localhost\n -// ARVADOS_API_HOST=localhost\r\n -// ARVADOS_API_HOST = localhost \n -// \tARVADOS_API_HOST = localhost\n +// ARVADOS_API_HOST=localhost\n +// ARVADOS_API_HOST=localhost\r\n +// ARVADOS_API_HOST = localhost \n +// \tARVADOS_API_HOST = localhost\n func NewClientFromEnv() *Client { vars := map[string]string{} home := os.Getenv("HOME") @@ -330,11 +330,11 @@ func (c *Client) DoAndDecode(dst interface{}, req *http.Request) error { // Convert an arbitrary struct to url.Values. For example, // -// Foo{Bar: []int{1,2,3}, Baz: "waz"} +// Foo{Bar: []int{1,2,3}, Baz: "waz"} // // becomes // -// url.Values{`bar`:`{"a":[1,2,3]}`,`Baz`:`waz`} +// url.Values{`bar`:`{"a":[1,2,3]}`,`Baz`:`waz`} // // params itself is returned if it is already an url.Values. func anythingToValues(params interface{}) (url.Values, error) { diff --git a/sdk/go/arvados/config.go b/sdk/go/arvados/config.go index 8705f28693..64b7fab8d2 100644 --- a/sdk/go/arvados/config.go +++ b/sdk/go/arvados/config.go @@ -535,9 +535,11 @@ type InstanceTypeMap map[string]InstanceType var errDuplicateInstanceTypeName = errors.New("duplicate instance type name") // UnmarshalJSON does special handling of InstanceTypes: -// * populate computed fields (Name and Scratch) -// * error out if InstancesTypes are populated as an array, which was -// deprecated in Arvados 1.2.0 +// +// - populate computed fields (Name and Scratch) +// +// - error out if InstancesTypes are populated as an array, which was +// deprecated in Arvados 1.2.0 func (it *InstanceTypeMap) UnmarshalJSON(data []byte) error { fixup := func(t InstanceType) (InstanceType, error) { if t.ProviderType == "" { diff --git a/sdk/go/arvados/fs_collection.go b/sdk/go/arvados/fs_collection.go index a26c876b93..354658a257 100644 --- a/sdk/go/arvados/fs_collection.go +++ b/sdk/go/arvados/fs_collection.go @@ -513,9 +513,9 @@ type filenodePtr struct { // // After seeking: // -// ptr.segmentIdx == len(filenode.segments) // i.e., at EOF -// || -// filenode.segments[ptr.segmentIdx].Len() > ptr.segmentOff +// ptr.segmentIdx == len(filenode.segments) // i.e., at EOF +// || +// filenode.segments[ptr.segmentIdx].Len() > ptr.segmentOff func (fn *filenode) seek(startPtr filenodePtr) (ptr filenodePtr) { ptr = startPtr if ptr.off < 0 {