From 4b6eb2f7221befe5eb98851a32e54ee613d22500 Mon Sep 17 00:00:00 2001 From: Matt Silverlock Date: Mon, 11 Jan 2016 08:49:47 -0800 Subject: [PATCH] Fixed package decl + JSON tag issues (via go vet). --- cloudflare.go | 6 +++--- cmd/flarectl/flarectl.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cloudflare.go b/cloudflare.go index 8d6f1591f3c..a5a341acd53 100644 --- a/cloudflare.go +++ b/cloudflare.go @@ -103,7 +103,7 @@ type User struct { Telephone string `json:"telephone"` Country string `json:"country"` Zipcode string `json:"zipcode"` - CreatedOn string `json:"created_on` // Should this be a time.Date? + CreatedOn string `json:"created_on"` // Should this be a time.Date? ModifiedOn string `json:"modified_on"` APIKey string `json:"api_key"` TwoFA bool `json:"two_factor_authentication_enabled"` @@ -204,8 +204,8 @@ type ZoneSetting struct { ID string `json:"id"` Editable bool `json:"editable"` ModifiedOn string `json:"modified_on"` - Value interface{} `json:"value""` - TimeRemaining int `json:"time_remaining""` + Value interface{} `json:"value"` + TimeRemaining int `json:"time_remaining"` } type ZoneSettingResponse struct { diff --git a/cmd/flarectl/flarectl.go b/cmd/flarectl/flarectl.go index 239fd3e6005..b5a8a52d839 100644 --- a/cmd/flarectl/flarectl.go +++ b/cmd/flarectl/flarectl.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/codegangsta/cli" - "github.com/jamesog/cloudflare" + "github.com/jamesog/cloudflare-go" ) var api *cloudflare.API