chore: bump x/tools to latest (#4329)

* chore: bump `x/tools` to latest

* chore: fixed lint on go1.24
This commit is contained in:
Giau. Tran Minh
2025-02-13 16:09:44 +07:00
committed by GitHub
parent c5db03c30e
commit 2b1ad7e4b0
24 changed files with 46 additions and 46 deletions

View File

@@ -14,7 +14,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_EdgeIndex() {
func Example_edgeIndex() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -17,7 +17,7 @@ import (
"gocloud.dev/secrets/localsecrets"
)
func Example_EncryptField() {
func Example_encryptField() {
key, err := localsecrets.NewRandomKey()
if err != nil {
log.Fatalf("failed creating random key: %v", err)

View File

@@ -17,7 +17,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_EntcPkg() {
func Example_entcPkg() {
client, err := ent.Open(
"sqlite3",
"file:ent?mode=memory&cache=shared&_fk=1",

View File

@@ -16,7 +16,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_RecursiveTraversal() {
func Example_recursiveTraversal() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -32,9 +32,9 @@ require (
github.com/zclconf/go-cty-yaml v1.1.0 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.3.0 // indirect
golang.org/x/mod v0.20.0 // indirect
golang.org/x/mod v0.23.0 // indirect
golang.org/x/net v0.6.0 // indirect
golang.org/x/sys v0.23.0 // indirect
golang.org/x/sys v0.30.0 // indirect
golang.org/x/text v0.21.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.103.0 // indirect

View File

@@ -1881,8 +1881,8 @@ golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI=
golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0=
golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM=
golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -2164,8 +2164,8 @@ golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM=
golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=

View File

@@ -14,7 +14,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_JSONEncode() {
func Example_jsonEncode() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -16,7 +16,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_M2M2Types() {
func Example_m2m2Types() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -15,7 +15,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_M2MBidi() {
func Example_m2mBidi() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -16,7 +16,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_M2MRecur() {
func Example_m2mRecur() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -14,7 +14,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_O2M2Types() {
func Example_o2m2Types() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -15,7 +15,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_O2MRecur() {
func Example_o2mRecur() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -15,7 +15,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_O2O2Types() {
func Example_o2o2Types() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -15,7 +15,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_O2OBidi() {
func Example_o2oBidi() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -15,7 +15,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_O2ORecur() {
func Example_o2oRecur() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -19,7 +19,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_PrivacyAdmin() {
func Example_privacyAdmin() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -19,7 +19,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_CreateTenants() {
func Example_createTenants() {
ctx := context.Background()
client := open(ctx)
defer client.Close()
@@ -57,7 +57,7 @@ func Example_CreateTenants() {
// Tenant(id=2, name=GitLab)
}
func Example_TenantView() {
func Example_tenantView() {
ctx := context.Background()
client := open(ctx)
defer client.Close()
@@ -141,7 +141,7 @@ func Example_TenantView() {
// 2
}
func Example_DenyMismatchedTenants() {
func Example_denyMismatchedTenants() {
ctx := context.Background()
client := open(ctx)
defer client.Close()

View File

@@ -17,7 +17,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_Traversal() {
func Example_traversal() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)

View File

@@ -17,7 +17,7 @@ import (
_ "github.com/mattn/go-sqlite3"
)
func Example_OptimisticLock() {
func Example_optimisticLock() {
client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
if err != nil {
log.Fatalf("failed opening connection to sqlite: %v", err)