From e54d36b489a0adae810df9e279cae9a6db8f8dbb Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 7 Sep 2017 13:10:56 +0200 Subject: [PATCH] backend/remote-state/gcloud: Sort standard library imports before other imports. --- backend/remote-state/gcloud/backend.go | 3 ++- backend/remote-state/gcloud/backend_state.go | 9 +++++---- backend/remote-state/gcloud/client.go | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/backend/remote-state/gcloud/backend.go b/backend/remote-state/gcloud/backend.go index bb67a7bfaf..04978325b7 100644 --- a/backend/remote-state/gcloud/backend.go +++ b/backend/remote-state/gcloud/backend.go @@ -1,9 +1,10 @@ package gcloud import ( - "cloud.google.com/go/storage" "context" "fmt" + + "cloud.google.com/go/storage" "github.com/hashicorp/terraform/backend" "github.com/hashicorp/terraform/helper/pathorcontents" "github.com/hashicorp/terraform/helper/schema" diff --git a/backend/remote-state/gcloud/backend_state.go b/backend/remote-state/gcloud/backend_state.go index 439a289ad7..9eb15f8921 100644 --- a/backend/remote-state/gcloud/backend_state.go +++ b/backend/remote-state/gcloud/backend_state.go @@ -1,17 +1,18 @@ package gcloud import ( - "cloud.google.com/go/storage" "errors" "fmt" + "regexp" + "sort" + "strings" + + "cloud.google.com/go/storage" "github.com/hashicorp/terraform/backend" "github.com/hashicorp/terraform/state" "github.com/hashicorp/terraform/state/remote" "github.com/hashicorp/terraform/terraform" "google.golang.org/api/iterator" - "regexp" - "sort" - "strings" ) func (b *Backend) States() ([]string, error) { diff --git a/backend/remote-state/gcloud/client.go b/backend/remote-state/gcloud/client.go index 145d4fe175..392cc5c3c4 100644 --- a/backend/remote-state/gcloud/client.go +++ b/backend/remote-state/gcloud/client.go @@ -1,14 +1,15 @@ package gcloud import ( - "cloud.google.com/go/storage" "encoding/json" "fmt" + "io/ioutil" + + "cloud.google.com/go/storage" uuid "github.com/hashicorp/go-uuid" "github.com/hashicorp/terraform/state" "github.com/hashicorp/terraform/state/remote" "golang.org/x/net/context" - "io/ioutil" ) type RemoteClient struct {