Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit c4e06a3

Browse files
authored
go fmt (#44)
1 parent ab1d628 commit c4e06a3

7 files changed

+19
-14
lines changed

alertnotification_test.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package gapi
22

33
import (
4-
"github.com/gobs/pretty"
54
"testing"
5+
6+
"github.com/gobs/pretty"
67
)
78

89
const (
@@ -121,7 +122,7 @@ func TestNewAlertNotification(t *testing.T) {
121122
DisableResolveMessage: true,
122123
SendReminder: true,
123124
Frequency: "15m",
124-
Settings: map[string]string{
125+
Settings: map[string]string{
125126
"addresses": "[email protected]",
126127
},
127128
}
@@ -149,7 +150,7 @@ func TestUpdateAlertNotification(t *testing.T) {
149150
DisableResolveMessage: true,
150151
SendReminder: true,
151152
Frequency: "15m",
152-
Settings: map[string]string{
153+
Settings: map[string]string{
153154
"addresses": "[email protected]",
154155
},
155156
}

dashboard_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const (
2828
"slug": "production-overview"
2929
}
3030
}`
31-
31+
3232
getDashboardsJSON = `[
3333
{
3434
"id": 1,
@@ -138,7 +138,7 @@ func TestDashboardDelete(t *testing.T) {
138138
if err == nil {
139139
t.Errorf("%d not detected", code)
140140
}
141-
}
141+
}
142142
}
143143

144144
func TestDashboards(t *testing.T) {
@@ -159,4 +159,4 @@ func TestDashboards(t *testing.T) {
159159
if dashboards[0].Id != 1 || dashboards[0].Title != "Grafana Stats" {
160160
t.Error("Not correctly parsing returned dashboards.")
161161
}
162-
}
162+
}

datasource.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ type JSONData struct {
7878
// Used by Prometheus
7979
HttpMethod string `json:"httpMethod,omitempty"`
8080
QueryTimeout string `json:"queryTimeout,omitempty"`
81-
81+
8282
// Used by Stackdriver
8383
AuthenticationType string `json:"authenticationType,omitempty"`
84-
ClientEmail string `json:"clientEmail,omitempty"`
84+
ClientEmail string `json:"clientEmail,omitempty"`
8585
DefaultProject string `json:"defaultProject,omitempty"`
86-
TokenUri string `json:"tokenUri,omitempty"`
86+
TokenUri string `json:"tokenUri,omitempty"`
8787
}
8888

8989
// SecureJSONData is a representation of the datasource `secureJsonData` property
@@ -98,7 +98,7 @@ type SecureJSONData struct {
9898
// Used by Cloudwatch
9999
AccessKey string `json:"accessKey,omitempty"`
100100
SecretKey string `json:"secretKey,omitempty"`
101-
101+
102102
// Used by Stackdriver
103103
PrivateKey string `json:"privateKey,omitempty"`
104104
}

folder_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package gapi
22

33
import (
4-
"github.com/gobs/pretty"
54
"testing"
5+
6+
"github.com/gobs/pretty"
67
)
78

89
const (

org_users_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package gapi
22

33
import (
4-
"github.com/gobs/pretty"
54
"testing"
5+
6+
"github.com/gobs/pretty"
67
)
78

89
const (

orgs_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package gapi
22

33
import (
4-
"github.com/gobs/pretty"
54
"testing"
5+
6+
"github.com/gobs/pretty"
67
)
78

89
const (

user_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package gapi
22

33
import (
4-
"github.com/gobs/pretty"
54
"testing"
5+
6+
"github.com/gobs/pretty"
67
)
78

89
const (

0 commit comments

Comments
 (0)