Skip to content

Commit 7349d8c

Browse files
committed
* Removed support of go1.20
1 parent c3d795f commit 7349d8c

24 files changed

+14
-235
lines changed

.github/workflows/examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
- 5432:5432
7171
env:
7272
OS: ubuntu-latest
73-
GO: 1.20.x
73+
GO: 1.22.x
7474
POSTGRES_CONNECTION_STRING: postgres://postgres:postgres@localhost:5432/basic?sslmode=disable
7575
steps:
7676
- name: Checkout code
@@ -93,7 +93,7 @@ jobs:
9393
application: [ gorm, xorm ]
9494
env:
9595
OS: ubuntu-latest
96-
GO: 1.20.x
96+
GO: 1.22.x
9797
SQLITE_CONNECTION_STRING: ${{ matrix.application }}.db
9898
steps:
9999
- name: Checkout code

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
go-version: [1.20.x, 1.21.x, 1.22.x]
21+
go-version: [1.21.x, 1.22.x]
2222
os: [ubuntu, windows, macOS]
2323
env:
2424
OS: ${{ matrix.os }}-latest
@@ -50,7 +50,7 @@ jobs:
5050
strategy:
5151
fail-fast: false
5252
matrix:
53-
go-version: [1.20.x, 1.21.x, 1.22.x]
53+
go-version: [1.21.x, 1.22.x]
5454
ydb-version: [23.3, 24.1]
5555
services:
5656
ydb:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* Removed support of `go1.20`
12
* Added PopMessages from topic within transaction
23

34
## v3.76.3

balancers/balancers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package balancers
22

33
import (
4+
"slices"
45
"sort"
56
"strings"
67

78
balancerConfig "github.com/ydb-platform/ydb-go-sdk/v3/internal/balancer/config"
89
"github.com/ydb-platform/ydb-go-sdk/v3/internal/endpoint"
9-
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xslices"
1010
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xstring"
1111
)
1212

@@ -94,7 +94,7 @@ func PreferLocations(balancer *balancerConfig.Config, locations ...string) *bala
9494
}
9595

9696
// Prevent modify source locations
97-
locations = xslices.Clone(locations)
97+
locations = slices.Clone(locations)
9898

9999
for i := range locations {
100100
locations[i] = strings.ToUpper(locations[i])

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ydb-platform/ydb-go-sdk/v3
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/golang-jwt/jwt/v4 v4.4.1

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
4747
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
4848
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
4949
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
50+
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
5051
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
5152
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
5253
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=

internal/xcontext/done.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build go1.21
2-
// +build go1.21
3-
41
package xcontext
52

63
import (

internal/xcontext/done_go1.20.go

Lines changed: 0 additions & 13 deletions
This file was deleted.

internal/xcontext/done_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build go1.21
2-
// +build go1.21
3-
41
package xcontext
52

63
import (

internal/xcontext/without_deadline.go renamed to internal/xcontext/value_only.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build go1.21
2-
// +build go1.21
3-
41
package xcontext
52

63
import (

0 commit comments

Comments
 (0)