]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/commitdiff
provider: Require Go 1.11 in TravisCI and README
authorAlex Pilon <apilon@hashicorp.com>
Mon, 7 Jan 2019 23:04:34 +0000 (18:04 -0500)
committerAlex Pilon <apilon@hashicorp.com>
Mon, 7 Jan 2019 23:04:34 +0000 (18:04 -0500)
provider: Run go fix
provider: Run go fmt

.travis.yml
README.md
statuscake/provider.go

index 0eabb81919e145e1be2a9f62600dfbbdbc7b2472..e85a5f222bef2f26d0fe1c190c9237a885e7f614 100644 (file)
@@ -4,7 +4,7 @@ services:
 - docker
 language: go
 go:
-- 1.8.1
+  - "1.11.x"
 
 install:
 # This script is used by the Travis build to install a cookie for
index ffed474066133e30d2b68f57485d022cde7aa435..ccdb57dd330173ee344d689b9e5334590ff2c3d7 100644 (file)
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ Requirements
 ------------
 
 -      [Terraform](https://www.terraform.io/downloads.html) 0.10.x
--      [Go](https://golang.org/doc/install) 1.8 (to build the provider plugin)
+-      [Go](https://golang.org/doc/install) 1.11 (to build the provider plugin)
 
 Building The Provider
 ---------------------
@@ -37,7 +37,7 @@ Using the provider
 Developing the Provider
 ---------------------------
 
-If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.8+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
+If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.11+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
 
 To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.
 
index abca37698274568c5ddc4d84d1c18ba5aa4db892..93c691f671701e7bc8a6182e4db9e209976fa090 100644 (file)
@@ -9,13 +9,13 @@ import (
 func Provider() terraform.ResourceProvider {
        return &schema.Provider{
                Schema: map[string]*schema.Schema{
-                       "username": &schema.Schema{
+                       "username": {
                                Type:        schema.TypeString,
                                Required:    true,
                                DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_USERNAME", nil),
                                Description: "Username for StatusCake Account.",
                        },
-                       "apikey": &schema.Schema{
+                       "apikey": {
                                Type:        schema.TypeString,
                                Required:    true,
                                DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_APIKEY", nil),