Skip to content

Commit

Permalink
beautifying code files (imported packages order)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArshiaDadras committed Sep 22, 2024
1 parent 0da5101 commit 0a2ad06
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
3 changes: 2 additions & 1 deletion services/eta/eta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package eta

import (
"context"
"github.com/snapp-incubator/smapp-sdk-go/config"
"net/http"
"net/http/httptest"
"testing"
"time"

"github.com/snapp-incubator/smapp-sdk-go/config"
)

func TestNewETAClient(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions services/eta/options.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package eta

import (
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
"net/http"

"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
)

// ConstructorOption is a function type for customizing constructor behaviour in a fluent way.
Expand All @@ -28,4 +29,4 @@ func WithRequestOpenTelemetryTracing(tracerName string) ConstructorOption {
client.tracerName = tracerName
client.httpClient.Transport = otelhttp.NewTransport(client.httpClient.Transport)
}
}
}
3 changes: 2 additions & 1 deletion services/eta/options_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package eta

import (
"github.com/snapp-incubator/smapp-sdk-go/config"
"net/http"
"testing"
"time"

"github.com/snapp-incubator/smapp-sdk-go/config"
)

func TestWithURL(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion services/matrix/matrix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package matrix

import (
"context"
"github.com/snapp-incubator/smapp-sdk-go/config"
"net/http"
"net/http/httptest"
"testing"
"time"

"github.com/snapp-incubator/smapp-sdk-go/config"
)

func TestNewMatrixClient(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion services/matrix/options.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package matrix

import (
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
"net/http"

"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
)

// ConstructorOption is a function type for customizing constructor behaviour in a fluent way.
Expand Down
3 changes: 2 additions & 1 deletion services/matrix/options_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package matrix

import (
"github.com/snapp-incubator/smapp-sdk-go/config"
"net/http"
"testing"
"time"

"github.com/snapp-incubator/smapp-sdk-go/config"
)

func TestWithURL(t *testing.T) {
Expand Down

0 comments on commit 0a2ad06

Please sign in to comment.