Skip to content

Commit abaf51a

Browse files
committed
fix: run go fmt
1 parent c3520bb commit abaf51a

File tree

15 files changed

+57
-55
lines changed

15 files changed

+57
-55
lines changed

cmd/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,

cmd/root.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,
1212
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
15-
1615
*/
1716
package cmd
1817

cmd/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,

internal/awshelper/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,

internal/awshelper/session_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,

internal/camelcase/camelcase.go

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,
@@ -29,37 +29,37 @@ import (
2929
//
3030
// Examples
3131
//
32-
// "" => [""]
33-
// "lowercase" => ["lowercase"]
34-
// "Class" => ["Class"]
35-
// "MyClass" => ["My", "Class"]
36-
// "MyC" => ["My", "C"]
37-
// "HTML" => ["HTML"]
38-
// "PDFLoader" => ["PDF", "Loader"]
39-
// "AString" => ["A", "String"]
40-
// "SimpleXMLParser" => ["Simple", "XML", "Parser"]
41-
// "vimRPCPlugin" => ["vim", "RPC", "Plugin"]
42-
// "GL11Version" => ["GL", "11", "Version"]
43-
// "99Bottles" => ["99", "Bottles"]
44-
// "May5" => ["May", "5"]
45-
// "BFG9000" => ["BFG", "9000"]
46-
// "BöseÜberraschung" => ["Böse", "Überraschung"]
47-
// "Two spaces" => ["Two", " ", "spaces"]
48-
// "BadUTF8\xe2\xe2\xa1" => ["BadUTF8\xe2\xe2\xa1"]
32+
// "" => [""]
33+
// "lowercase" => ["lowercase"]
34+
// "Class" => ["Class"]
35+
// "MyClass" => ["My", "Class"]
36+
// "MyC" => ["My", "C"]
37+
// "HTML" => ["HTML"]
38+
// "PDFLoader" => ["PDF", "Loader"]
39+
// "AString" => ["A", "String"]
40+
// "SimpleXMLParser" => ["Simple", "XML", "Parser"]
41+
// "vimRPCPlugin" => ["vim", "RPC", "Plugin"]
42+
// "GL11Version" => ["GL", "11", "Version"]
43+
// "99Bottles" => ["99", "Bottles"]
44+
// "May5" => ["May", "5"]
45+
// "BFG9000" => ["BFG", "9000"]
46+
// "BöseÜberraschung" => ["Böse", "Überraschung"]
47+
// "Two spaces" => ["Two", " ", "spaces"]
48+
// "BadUTF8\xe2\xe2\xa1" => ["BadUTF8\xe2\xe2\xa1"]
4949
//
5050
// Splitting rules
5151
//
52-
// 1) If string is not valid UTF-8, return it without splitting as
52+
// 1. If string is not valid UTF-8, return it without splitting as
5353
// single item array.
54-
// 2) Assign all unicode characters into one of 4 sets: lower case
54+
// 2. Assign all unicode characters into one of 4 sets: lower case
5555
// letters, upper case letters, numbers, and all other characters.
56-
// 3) Iterate through characters of string, introducing splits
56+
// 3. Iterate through characters of string, introducing splits
5757
// between adjacent characters that belong to different sets.
58-
// 4) Iterate through array of split strings, and if a given string
58+
// 4. Iterate through array of split strings, and if a given string
5959
// is upper case:
60-
// if subsequent string is lower case:
61-
// move last character of upper case string to beginning of
62-
// lower case string
60+
// if subsequent string is lower case:
61+
// move last character of upper case string to beginning of
62+
// lower case string
6363
func Split(s string) []string {
6464
// don't split invalid utf8
6565
if !utf8.ValidString(s) {

internal/camelcase/camelcase_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,

internal/collector/collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,

internal/config/config.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,
@@ -47,8 +47,9 @@ func (c *All) ToYAML() string {
4747
// This is a convenient structure to allow config files nested (server.[keys])
4848
// server.conf file
4949
// server:
50-
// address:
51-
// port:
50+
//
51+
// address:
52+
// port:
5253
type ServerConf struct {
5354
Server `mapstructure:"server" json:"server" yaml:"server"`
5455
}
@@ -69,8 +70,9 @@ type Server struct {
6970
// This is a convenient structure to allow config files nested (application.[keys])
7071
// No File conf
7172
// application:
72-
// name:
73-
// description:
73+
//
74+
// name:
75+
// description:
7476
type ApplicationConf struct {
7577
Application `mapstructure:"application" json:"application" yaml:"application"`
7678
}
@@ -106,7 +108,6 @@ type MetricDataQueriesConf struct {
106108
MetricDataQueries []MetricDataQuery `mapstructure:"MetricDataQueries" json:"MetricDataQueries" yaml:"MetricDataQueries"`
107109
}
108110

109-
//
110111
type MetricDataQuery struct {
111112
ID string `mapstructure:"Id" json:"Id" yaml:"Id"`
112113
MetricStat struct {

0 commit comments

Comments
 (0)