From 497e21f048ac409ef6ac6703393a6abb88a31971 Mon Sep 17 00:00:00 2001 From: Boris Date: Sat, 6 Sep 2025 23:29:08 +0800 Subject: [PATCH 1/2] update go.mod --- .github/workflows/test.yml | 2 +- go.mod | 6 ++---- go.sum | 13 ++++--------- .../README.md | 0 .../Solution.go | 0 .../Solution_test.go | 0 6 files changed, 7 insertions(+), 14 deletions(-) rename "leetcode/3501-3600/3572.Maximize-Y\342\200\221Sum-by-Picking-a-Triplet-of-Distinct-X\342\200\221Values/README.md" => leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/README.md (100%) rename "leetcode/3501-3600/3572.Maximize-Y\342\200\221Sum-by-Picking-a-Triplet-of-Distinct-X\342\200\221Values/Solution.go" => leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/Solution.go (100%) rename "leetcode/3501-3600/3572.Maximize-Y\342\200\221Sum-by-Picking-a-Triplet-of-Distinct-X\342\200\221Values/Solution_test.go" => leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/Solution_test.go (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 43a9b0c5f..bdfe2b7c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '^1.24.0' + go-version: '^1.25.1' id: go - name: Get dependencies run: go mod download diff --git a/go.mod b/go.mod index bbbe00c7a..0c65f5f3e 100644 --- a/go.mod +++ b/go.mod @@ -3,15 +3,13 @@ module awesome-golang-algorithm go 1.24 require ( - github.com/imroc/req/v3 v3.54.0 - github.com/stretchr/testify v1.10.0 + github.com/imroc/req/v3 v3.54.2 + github.com/stretchr/testify v1.11.1 ) require ( github.com/andybalholm/brotli v1.2.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/hashicorp/errwrap v1.1.0 // indirect - github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/icholy/digest v1.1.0 // indirect github.com/klauspost/compress v1.18.0 // indirect github.com/kr/pretty v0.3.1 // indirect diff --git a/go.sum b/go.sum index 2ff64cf9c..65e77a342 100644 --- a/go.sum +++ b/go.sum @@ -5,15 +5,10 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= -github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= -github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/icholy/digest v1.1.0 h1:HfGg9Irj7i+IX1o1QAmPfIBNu/Q5A5Tu3n/MED9k9H4= github.com/icholy/digest v1.1.0/go.mod h1:QNrsSGQ5v7v9cReDI0+eyjsXGUoRSUZQHeQ5C4XLa0Y= -github.com/imroc/req/v3 v3.54.0 h1:kwWJSpT7OvjJ/Q8ykp+69Ye5H486RKDcgEoepw1Ren4= -github.com/imroc/req/v3 v3.54.0/go.mod h1:P8gCJjG/XNUFeP6WOi40VAXfYwT+uPM00xvoBWiwzUQ= +github.com/imroc/req/v3 v3.54.2 h1:1eWvCPiz3mSwap7HWqdHN2biuoue+n+mpYWsYiXeMB0= +github.com/imroc/req/v3 v3.54.2/go.mod h1:nR52xB4Ogdwst/UW3QLb2wUiR9ZCLYhiLX9iyksae0I= github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo= github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= @@ -35,8 +30,8 @@ github.com/refraction-networking/utls v1.8.0/go.mod h1:jkSOEkLqn+S/jtpEHPOsVv/4V github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU= github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E= go.uber.org/mock v0.5.2 h1:LbtPTcP8A5k9WPXj54PPPbjcI4Y6lhyOZXn+VS7wNko= diff --git "a/leetcode/3501-3600/3572.Maximize-Y\342\200\221Sum-by-Picking-a-Triplet-of-Distinct-X\342\200\221Values/README.md" b/leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/README.md similarity index 100% rename from "leetcode/3501-3600/3572.Maximize-Y\342\200\221Sum-by-Picking-a-Triplet-of-Distinct-X\342\200\221Values/README.md" rename to leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/README.md diff --git "a/leetcode/3501-3600/3572.Maximize-Y\342\200\221Sum-by-Picking-a-Triplet-of-Distinct-X\342\200\221Values/Solution.go" b/leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/Solution.go similarity index 100% rename from "leetcode/3501-3600/3572.Maximize-Y\342\200\221Sum-by-Picking-a-Triplet-of-Distinct-X\342\200\221Values/Solution.go" rename to leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/Solution.go diff --git "a/leetcode/3501-3600/3572.Maximize-Y\342\200\221Sum-by-Picking-a-Triplet-of-Distinct-X\342\200\221Values/Solution_test.go" b/leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/Solution_test.go similarity index 100% rename from "leetcode/3501-3600/3572.Maximize-Y\342\200\221Sum-by-Picking-a-Triplet-of-Distinct-X\342\200\221Values/Solution_test.go" rename to leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/Solution_test.go From 24a3f8ad890de417e8ded623134958e35a06b9ae Mon Sep 17 00:00:00 2001 From: Boris Date: Sat, 6 Sep 2025 23:29:17 +0800 Subject: [PATCH 2/2] update go.mod --- .../Solution_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/Solution_test.go b/leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/Solution_test.go index 14ff50eb4..499883f0b 100644 --- a/leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/Solution_test.go +++ b/leetcode/3501-3600/3572.Maximize-Y-Sum-by-Picking-a-Triplet-of-Distinct-X-Values/Solution_test.go @@ -30,10 +30,10 @@ func TestSolution(t *testing.T) { } } -// 压力测试 +// 压力测试 func BenchmarkSolution(b *testing.B) { } -// 使用案列 +// 使用案列 func ExampleSolution() { }