Skip to content

Commit 3429ff1

Browse files
committed
Fix formatting in some *.go files
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
1 parent c662747 commit 3429ff1

8 files changed

Lines changed: 12 additions & 19 deletions

expfmt/bench_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ import (
2222
"os"
2323
"testing"
2424

25-
"google.golang.org/protobuf/encoding/protodelim"
26-
2725
dto "github.com/prometheus/client_model/go"
2826
"github.com/stretchr/testify/require"
27+
"google.golang.org/protobuf/encoding/protodelim"
2928

3029
"github.com/prometheus/common/model"
3130
)

expfmt/encode.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@ import (
1818
"io"
1919
"net/http"
2020

21+
"github.com/munnerz/goautoneg"
22+
dto "github.com/prometheus/client_model/go"
2123
"google.golang.org/protobuf/encoding/protodelim"
2224
"google.golang.org/protobuf/encoding/prototext"
2325

2426
"github.com/prometheus/common/model"
25-
26-
"github.com/munnerz/goautoneg"
27-
28-
dto "github.com/prometheus/client_model/go"
2927
)
3028

3129
// Encoder types encode metric families into an underlying wire protocol.

expfmt/encode_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ import (
1818
"net/http"
1919
"testing"
2020

21+
dto "github.com/prometheus/client_model/go"
2122
"github.com/stretchr/testify/assert"
2223
"github.com/stretchr/testify/require"
2324
"google.golang.org/protobuf/proto"
2425

2526
"github.com/prometheus/common/model"
26-
27-
dto "github.com/prometheus/client_model/go"
2827
)
2928

3029
func TestNegotiate(t *testing.T) {

expfmt/expfmt_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ package expfmt
1616
import (
1717
"testing"
1818

19-
"github.com/prometheus/common/model"
20-
2119
"github.com/stretchr/testify/require"
20+
21+
"github.com/prometheus/common/model"
2222
)
2323

2424
// Test Format to Escapting Scheme conversion

expfmt/openmetrics_create.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ import (
2222
"strconv"
2323
"strings"
2424

25+
dto "github.com/prometheus/client_model/go"
2526
"google.golang.org/protobuf/types/known/timestamppb"
2627

2728
"github.com/prometheus/common/model"
28-
29-
dto "github.com/prometheus/client_model/go"
3029
)
3130

3231
type encoderOption struct {

expfmt/openmetrics_create_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ import (
2020
"testing"
2121
"time"
2222

23-
"google.golang.org/protobuf/proto"
24-
"google.golang.org/protobuf/types/known/timestamppb"
25-
2623
dto "github.com/prometheus/client_model/go"
2724
"github.com/stretchr/testify/require"
25+
"google.golang.org/protobuf/proto"
26+
"google.golang.org/protobuf/types/known/timestamppb"
2827

2928
"github.com/prometheus/common/model"
3029
)

expfmt/text_create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import (
2222
"strings"
2323
"sync"
2424

25-
"github.com/prometheus/common/model"
26-
2725
dto "github.com/prometheus/client_model/go"
26+
27+
"github.com/prometheus/common/model"
2828
)
2929

3030
// enhancedWriter has all the enhanced write functions needed here. bufio.Writer

expfmt/text_create_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ import (
1919
"strings"
2020
"testing"
2121

22-
"google.golang.org/protobuf/proto"
23-
2422
dto "github.com/prometheus/client_model/go"
2523
"github.com/stretchr/testify/require"
24+
"google.golang.org/protobuf/proto"
2625

2726
"github.com/prometheus/common/model"
2827
)

0 commit comments

Comments
 (0)