diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9e6070d..801191b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,9 +27,11 @@ jobs: test: runs-on: ubuntu-latest container: - image: golang:1.17 + image: golang:1.23 steps: - uses: actions/checkout@v2 + - name: Set GOFLAGS to disable VCS + run: echo "GOFLAGS=-buildvcs=false" >> $GITHUB_ENV - name: Enable Go modules run: echo "GO111MODULE=on" >> $GITHUB_ENV - name: Download dependencies diff --git a/services/area-gateways/area_gateways_mock.go b/services/area-gateways/area_gateways_mock.go index 44dfde1..8c0620f 100644 --- a/services/area-gateways/area_gateways_mock.go +++ b/services/area-gateways/area_gateways_mock.go @@ -49,7 +49,7 @@ func (m *MockAreaGatewaysClient) GetGateways(lat, lon float64, options CallOptio } // GetGateways indicates an expected call of GetGateways. -func (mr *MockAreaGatewaysClientMockRecorder) GetGateways(lat, lon, options any) *gomock.Call { +func (mr *MockAreaGatewaysClientMockRecorder) GetGateways(lat, lon, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGateways", reflect.TypeOf((*MockAreaGatewaysClient)(nil).GetGateways), lat, lon, options) } @@ -64,7 +64,7 @@ func (m *MockAreaGatewaysClient) GetGatewaysWithContext(ctx context.Context, lat } // GetGatewaysWithContext indicates an expected call of GetGatewaysWithContext. -func (mr *MockAreaGatewaysClientMockRecorder) GetGatewaysWithContext(ctx, lat, lon, options any) *gomock.Call { +func (mr *MockAreaGatewaysClientMockRecorder) GetGatewaysWithContext(ctx, lat, lon, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGatewaysWithContext", reflect.TypeOf((*MockAreaGatewaysClient)(nil).GetGatewaysWithContext), ctx, lat, lon, options) } diff --git a/services/eta/call_options.go b/services/eta/call_options.go index 49e6977..64581bb 100644 --- a/services/eta/call_options.go +++ b/services/eta/call_options.go @@ -9,6 +9,7 @@ const ( EtaEngineV2 EtaEngineNostradamus EtaEngineOcelot + EtaEngineOrca ) // String casts the engine enum to its string value. @@ -23,6 +24,8 @@ func (engine EtaEngine) String() string { return "nostradamus" case EtaEngineOcelot: return "ocelot" + case EtaEngineOrca: + return "orca" } return "v1" } diff --git a/services/eta/call_options_test.go b/services/eta/call_options_test.go index e85a7fa..29d10bc 100644 --- a/services/eta/call_options_test.go +++ b/services/eta/call_options_test.go @@ -3,21 +3,31 @@ package eta import "testing" func TestMartixEngineString(t *testing.T) { - t.Run("test enginev1", func(t *testing.T) { + t.Run("test engine v1", func(t *testing.T) { if EtaEngineV1.String() != "v1" { t.Fatal("EtaEngineV1 is not stringified correctly") } }) - t.Run("test enginev2", func(t *testing.T) { + t.Run("test engine v2", func(t *testing.T) { if EtaEngineV2.String() != "v2" { t.Fatal("EtaEngineV2 is not stringified correctly") } }) + t.Run("test engine nostradamus", func(t *testing.T) { + if EtaEngineNostradamus.String() != "nostradamus" { + t.Fatal("EtaEngineNostradamus is not stringified correctly") + } + }) t.Run("test engine ocelot", func(t *testing.T) { if EtaEngineOcelot.String() != "ocelot" { t.Fatal("EtaEngineOcelot is not stringified correctly") } }) + t.Run("test engine orca", func(t *testing.T) { + if EtaEngineOrca.String() != "orca" { + t.Fatal("EtaEngineOrca is not stringified correctly") + } + }) } func TestWithEngine(t *testing.T) { diff --git a/services/eta/eta.go b/services/eta/eta.go index 4598a81..bdb4acf 100644 --- a/services/eta/eta.go +++ b/services/eta/eta.go @@ -4,18 +4,18 @@ import ( "context" "encoding/json" "fmt" - "github.com/snapp-incubator/smapp-sdk-go/config" - "github.com/snapp-incubator/smapp-sdk-go/version" - "go.opentelemetry.io/otel" - "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/trace" "io" - "io/ioutil" "net/http" "net/url" "strconv" "strings" "time" + + "github.com/snapp-incubator/smapp-sdk-go/config" + "github.com/snapp-incubator/smapp-sdk-go/version" + "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/trace" ) // Interface consists of functions of different functionalities of ETA service. there are two implementation of this service. @@ -125,13 +125,11 @@ func (c *Client) GetETAWithContext(ctx context.Context, points []Point, options return ETA{}, fmt.Errorf("smapp eta: could not make a request due to this error: %s", err.Error()) } - //nolint var responseSpan trace.Span - //nolint - ctx, responseSpan = otel.Tracer(c.tracerName).Start(ctx, "response-deserialization") + _, responseSpan = otel.Tracer(c.tracerName).Start(ctx, "response-deserialization") defer func() { - _, _ = io.Copy(ioutil.Discard, response.Body) + _, _ = io.Copy(io.Discard, response.Body) _ = response.Body.Close() }() diff --git a/services/eta/eta_mock.go b/services/eta/eta_mock.go index 25c71a8..b4c460a 100644 --- a/services/eta/eta_mock.go +++ b/services/eta/eta_mock.go @@ -49,7 +49,7 @@ func (m *MockETAClient) GetETA(points []Point, options CallOptions) (ETA, error) } // GetETA indicates an expected call of GetETA. -func (mr *MockETAClientMockRecorder) GetETA(points, options any) *gomock.Call { +func (mr *MockETAClientMockRecorder) GetETA(points, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetETA", reflect.TypeOf((*MockETAClient)(nil).GetETA), points, options) } @@ -64,7 +64,7 @@ func (m *MockETAClient) GetETAWithContext(ctx context.Context, points []Point, o } // GetETAWithContext indicates an expected call of GetETAWithContext. -func (mr *MockETAClientMockRecorder) GetETAWithContext(ctx, points, options any) *gomock.Call { +func (mr *MockETAClientMockRecorder) GetETAWithContext(ctx, points, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetETAWithContext", reflect.TypeOf((*MockETAClient)(nil).GetETAWithContext), ctx, points, options) } diff --git a/services/eta/eta_test.go b/services/eta/eta_test.go index 6e14ae4..f8089dd 100644 --- a/services/eta/eta_test.go +++ b/services/eta/eta_test.go @@ -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) { diff --git a/services/eta/options.go b/services/eta/options.go index a0b68e3..d83ca51 100644 --- a/services/eta/options.go +++ b/services/eta/options.go @@ -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. @@ -28,4 +29,4 @@ func WithRequestOpenTelemetryTracing(tracerName string) ConstructorOption { client.tracerName = tracerName client.httpClient.Transport = otelhttp.NewTransport(client.httpClient.Transport) } -} \ No newline at end of file +} diff --git a/services/eta/options_test.go b/services/eta/options_test.go index 0d291b8..6f193fe 100644 --- a/services/eta/options_test.go +++ b/services/eta/options_test.go @@ -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) { diff --git a/services/matrix/call_options.go b/services/matrix/call_options.go index 7603895..57cd593 100644 --- a/services/matrix/call_options.go +++ b/services/matrix/call_options.go @@ -8,6 +8,7 @@ const ( MatrixEngineV1 MatrixEngine = iota MatrixEngineV2 MatrixEngineOcelot + MatrixEngineOrca ) // String casts the engine enum to its string value. @@ -19,6 +20,8 @@ func (engine MatrixEngine) String() string { return "v2" case MatrixEngineOcelot: return "ocelot" + case MatrixEngineOrca: + return "orca" } return "v1" } diff --git a/services/matrix/call_options_test.go b/services/matrix/call_options_test.go index fd31674..cce7090 100644 --- a/services/matrix/call_options_test.go +++ b/services/matrix/call_options_test.go @@ -3,21 +3,26 @@ package matrix import "testing" func TestMartixEngineString(t *testing.T) { - t.Run("test enginev1", func(t *testing.T) { + t.Run("test engine v1", func(t *testing.T) { if MatrixEngineV1.String() != "v1" { t.Fatal("MatrixEngineV1 is not stringified correctly") } }) - t.Run("test enginev2", func(t *testing.T) { + t.Run("test engine v2", func(t *testing.T) { if MatrixEngineV2.String() != "v2" { t.Fatal("MatrixEngineV2 is not stringified correctly") } }) - t.Run("test engineOcelot", func(t *testing.T) { + t.Run("test engine ocelot", func(t *testing.T) { if MatrixEngineOcelot.String() != "ocelot" { t.Fatal("MatrixEngineOcelot is not stringified correctly") } }) + t.Run("test engine orca", func(t *testing.T) { + if MatrixEngineOrca.String() != "orca" { + t.Fatal("MatrixEngineOrca is not stringified correctly") + } + }) } func TestWithHeaders(t *testing.T) { diff --git a/services/matrix/matrix.go b/services/matrix/matrix.go index 28a973c..381f789 100644 --- a/services/matrix/matrix.go +++ b/services/matrix/matrix.go @@ -5,7 +5,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "net/http" "net/url" "strconv" @@ -124,13 +123,11 @@ func (c *Client) GetMatrixWithContext(ctx context.Context, sources []Point, targ return Output{}, fmt.Errorf("smapp matrix: could not make a request due to this error: %s", err.Error()) } - //nolint var responseSpan trace.Span - //nolint - ctx, responseSpan = otel.Tracer(c.tracerName).Start(ctx, "response-deserialization") + _, responseSpan = otel.Tracer(c.tracerName).Start(ctx, "response-deserialization") defer func() { - _, _ = io.Copy(ioutil.Discard, response.Body) + _, _ = io.Copy(io.Discard, response.Body) _ = response.Body.Close() }() diff --git a/services/matrix/matrix_mock.go b/services/matrix/matrix_mock.go index 81a2320..20f9103 100644 --- a/services/matrix/matrix_mock.go +++ b/services/matrix/matrix_mock.go @@ -49,7 +49,7 @@ func (m *MockMatrixClient) GetMatrix(sources, targets []Point, options CallOptio } // GetMatrix indicates an expected call of GetMatrix. -func (mr *MockMatrixClientMockRecorder) GetMatrix(sources, targets, options any) *gomock.Call { +func (mr *MockMatrixClientMockRecorder) GetMatrix(sources, targets, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMatrix", reflect.TypeOf((*MockMatrixClient)(nil).GetMatrix), sources, targets, options) } @@ -64,7 +64,7 @@ func (m *MockMatrixClient) GetMatrixWithContext(ctx context.Context, sources, ta } // GetMatrixWithContext indicates an expected call of GetMatrixWithContext. -func (mr *MockMatrixClientMockRecorder) GetMatrixWithContext(ctx, sources, targets, options any) *gomock.Call { +func (mr *MockMatrixClientMockRecorder) GetMatrixWithContext(ctx, sources, targets, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMatrixWithContext", reflect.TypeOf((*MockMatrixClient)(nil).GetMatrixWithContext), ctx, sources, targets, options) } diff --git a/services/matrix/matrix_test.go b/services/matrix/matrix_test.go index bdaf5f5..bc1a7e7 100644 --- a/services/matrix/matrix_test.go +++ b/services/matrix/matrix_test.go @@ -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) { diff --git a/services/matrix/options.go b/services/matrix/options.go index 143414f..a86c619 100644 --- a/services/matrix/options.go +++ b/services/matrix/options.go @@ -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. diff --git a/services/matrix/options_test.go b/services/matrix/options_test.go index eb5404c..0fdba9f 100644 --- a/services/matrix/options_test.go +++ b/services/matrix/options_test.go @@ -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) { diff --git a/services/reverse/reverse_mock.go b/services/reverse/reverse_mock.go index 133212a..ad460e7 100644 --- a/services/reverse/reverse_mock.go +++ b/services/reverse/reverse_mock.go @@ -49,7 +49,7 @@ func (m *MockReverseClient) GetBatch(request BatchReverseRequest) ([]Result, err } // GetBatch indicates an expected call of GetBatch. -func (mr *MockReverseClientMockRecorder) GetBatch(request any) *gomock.Call { +func (mr *MockReverseClientMockRecorder) GetBatch(request interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBatch", reflect.TypeOf((*MockReverseClient)(nil).GetBatch), request) } @@ -64,7 +64,7 @@ func (m *MockReverseClient) GetBatchDisplayName(request BatchReverseRequest) ([] } // GetBatchDisplayName indicates an expected call of GetBatchDisplayName. -func (mr *MockReverseClientMockRecorder) GetBatchDisplayName(request any) *gomock.Call { +func (mr *MockReverseClientMockRecorder) GetBatchDisplayName(request interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBatchDisplayName", reflect.TypeOf((*MockReverseClient)(nil).GetBatchDisplayName), request) } @@ -79,7 +79,7 @@ func (m *MockReverseClient) GetBatchDisplayNameWithContext(ctx context.Context, } // GetBatchDisplayNameWithContext indicates an expected call of GetBatchDisplayNameWithContext. -func (mr *MockReverseClientMockRecorder) GetBatchDisplayNameWithContext(ctx, request any) *gomock.Call { +func (mr *MockReverseClientMockRecorder) GetBatchDisplayNameWithContext(ctx, request interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBatchDisplayNameWithContext", reflect.TypeOf((*MockReverseClient)(nil).GetBatchDisplayNameWithContext), ctx, request) } @@ -94,7 +94,7 @@ func (m *MockReverseClient) GetBatchWithContext(ctx context.Context, request Bat } // GetBatchWithContext indicates an expected call of GetBatchWithContext. -func (mr *MockReverseClientMockRecorder) GetBatchWithContext(ctx, request any) *gomock.Call { +func (mr *MockReverseClientMockRecorder) GetBatchWithContext(ctx, request interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBatchWithContext", reflect.TypeOf((*MockReverseClient)(nil).GetBatchWithContext), ctx, request) } @@ -109,7 +109,7 @@ func (m *MockReverseClient) GetComponents(lat, lon float64, options CallOptions) } // GetComponents indicates an expected call of GetComponents. -func (mr *MockReverseClientMockRecorder) GetComponents(lat, lon, options any) *gomock.Call { +func (mr *MockReverseClientMockRecorder) GetComponents(lat, lon, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComponents", reflect.TypeOf((*MockReverseClient)(nil).GetComponents), lat, lon, options) } @@ -124,7 +124,7 @@ func (m *MockReverseClient) GetComponentsWithContext(ctx context.Context, lat, l } // GetComponentsWithContext indicates an expected call of GetComponentsWithContext. -func (mr *MockReverseClientMockRecorder) GetComponentsWithContext(ctx, lat, lon, options any) *gomock.Call { +func (mr *MockReverseClientMockRecorder) GetComponentsWithContext(ctx, lat, lon, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComponentsWithContext", reflect.TypeOf((*MockReverseClient)(nil).GetComponentsWithContext), ctx, lat, lon, options) } @@ -139,7 +139,7 @@ func (m *MockReverseClient) GetDisplayName(lat, lon float64, options CallOptions } // GetDisplayName indicates an expected call of GetDisplayName. -func (mr *MockReverseClientMockRecorder) GetDisplayName(lat, lon, options any) *gomock.Call { +func (mr *MockReverseClientMockRecorder) GetDisplayName(lat, lon, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDisplayName", reflect.TypeOf((*MockReverseClient)(nil).GetDisplayName), lat, lon, options) } @@ -154,7 +154,7 @@ func (m *MockReverseClient) GetDisplayNameWithContext(ctx context.Context, lat, } // GetDisplayNameWithContext indicates an expected call of GetDisplayNameWithContext. -func (mr *MockReverseClientMockRecorder) GetDisplayNameWithContext(ctx, lat, lon, options any) *gomock.Call { +func (mr *MockReverseClientMockRecorder) GetDisplayNameWithContext(ctx, lat, lon, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDisplayNameWithContext", reflect.TypeOf((*MockReverseClient)(nil).GetDisplayNameWithContext), ctx, lat, lon, options) } @@ -169,7 +169,7 @@ func (m *MockReverseClient) GetFrequent(lat, lon float64, options CallOptions) ( } // GetFrequent indicates an expected call of GetFrequent. -func (mr *MockReverseClientMockRecorder) GetFrequent(lat, lon, options any) *gomock.Call { +func (mr *MockReverseClientMockRecorder) GetFrequent(lat, lon, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFrequent", reflect.TypeOf((*MockReverseClient)(nil).GetFrequent), lat, lon, options) } @@ -184,7 +184,7 @@ func (m *MockReverseClient) GetFrequentWithContext(ctx context.Context, lat, lon } // GetFrequentWithContext indicates an expected call of GetFrequentWithContext. -func (mr *MockReverseClientMockRecorder) GetFrequentWithContext(ctx, lat, lon, options any) *gomock.Call { +func (mr *MockReverseClientMockRecorder) GetFrequentWithContext(ctx, lat, lon, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFrequentWithContext", reflect.TypeOf((*MockReverseClient)(nil).GetFrequentWithContext), ctx, lat, lon, options) } diff --git a/services/search/search_mock.go b/services/search/search_mock.go index 8fab02a..82bfc8d 100644 --- a/services/search/search_mock.go +++ b/services/search/search_mock.go @@ -49,7 +49,7 @@ func (m *MockSearchClient) AutoComplete(input string, options CallOptions) ([]Re } // AutoComplete indicates an expected call of AutoComplete. -func (mr *MockSearchClientMockRecorder) AutoComplete(input, options any) *gomock.Call { +func (mr *MockSearchClientMockRecorder) AutoComplete(input, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoComplete", reflect.TypeOf((*MockSearchClient)(nil).AutoComplete), input, options) } @@ -64,7 +64,7 @@ func (m *MockSearchClient) AutoCompleteWithContext(ctx context.Context, input st } // AutoCompleteWithContext indicates an expected call of AutoCompleteWithContext. -func (mr *MockSearchClientMockRecorder) AutoCompleteWithContext(ctx, input, options any) *gomock.Call { +func (mr *MockSearchClientMockRecorder) AutoCompleteWithContext(ctx, input, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoCompleteWithContext", reflect.TypeOf((*MockSearchClient)(nil).AutoCompleteWithContext), ctx, input, options) } @@ -79,7 +79,7 @@ func (m *MockSearchClient) Details(placeId string, options CallOptions) (Detail, } // Details indicates an expected call of Details. -func (mr *MockSearchClientMockRecorder) Details(placeId, options any) *gomock.Call { +func (mr *MockSearchClientMockRecorder) Details(placeId, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Details", reflect.TypeOf((*MockSearchClient)(nil).Details), placeId, options) } @@ -94,7 +94,7 @@ func (m *MockSearchClient) DetailsWithContext(ctx context.Context, placeId strin } // DetailsWithContext indicates an expected call of DetailsWithContext. -func (mr *MockSearchClientMockRecorder) DetailsWithContext(ctx, placeId, options any) *gomock.Call { +func (mr *MockSearchClientMockRecorder) DetailsWithContext(ctx, placeId, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetailsWithContext", reflect.TypeOf((*MockSearchClient)(nil).DetailsWithContext), ctx, placeId, options) } @@ -109,7 +109,7 @@ func (m *MockSearchClient) GetCities(options CallOptions) ([]City, error) { } // GetCities indicates an expected call of GetCities. -func (mr *MockSearchClientMockRecorder) GetCities(options any) *gomock.Call { +func (mr *MockSearchClientMockRecorder) GetCities(options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCities", reflect.TypeOf((*MockSearchClient)(nil).GetCities), options) } @@ -124,7 +124,7 @@ func (m *MockSearchClient) GetCitiesWithContext(ctx context.Context, options Cal } // GetCitiesWithContext indicates an expected call of GetCitiesWithContext. -func (mr *MockSearchClientMockRecorder) GetCitiesWithContext(ctx, options any) *gomock.Call { +func (mr *MockSearchClientMockRecorder) GetCitiesWithContext(ctx, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCitiesWithContext", reflect.TypeOf((*MockSearchClient)(nil).GetCitiesWithContext), ctx, options) } @@ -139,7 +139,7 @@ func (m *MockSearchClient) SearchCity(input string, options CallOptions) ([]City } // SearchCity indicates an expected call of SearchCity. -func (mr *MockSearchClientMockRecorder) SearchCity(input, options any) *gomock.Call { +func (mr *MockSearchClientMockRecorder) SearchCity(input, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchCity", reflect.TypeOf((*MockSearchClient)(nil).SearchCity), input, options) } @@ -154,7 +154,7 @@ func (m *MockSearchClient) SearchCityWithContext(ctx context.Context, input stri } // SearchCityWithContext indicates an expected call of SearchCityWithContext. -func (mr *MockSearchClientMockRecorder) SearchCityWithContext(ctx, input, options any) *gomock.Call { +func (mr *MockSearchClientMockRecorder) SearchCityWithContext(ctx, input, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchCityWithContext", reflect.TypeOf((*MockSearchClient)(nil).SearchCityWithContext), ctx, input, options) } diff --git a/version/version.go b/version/version.go index a09b02e..2b09f5b 100644 --- a/version/version.go +++ b/version/version.go @@ -3,7 +3,7 @@ package version import "fmt" const ( - Version = "v0.9.13" + Version = "v0.9.14" UserAgentHeader = "User-Agent" )