From ebb43adaf52790b4eaeec38f4da40b75c4bf6c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez=20Di=20Antonio?= Date: Sat, 11 Jul 2026 15:31:47 +0200 Subject: [PATCH] chore: bump go directive to 1.26 CI installs github.com/vladopajic/go-test-coverage/v2@latest for coverage checks, and setup-go derives the toolchain from go-version-file: ./go.mod. go-test-coverage v2.18.8 now requires Go >= 1.26, so with the module pinned to go 1.25.2 the install fails: go install github.com/vladopajic/go-test-coverage/v2@latest ... requires go >= 1.26 (running go 1.25.2; GOTOOLCHAIN=local) Bump the go directive to 1.26.0 so CI provisions a compatible toolchain, and update the README's stated minimum to match. Build, vet, and tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) --- README.md | 4 ++-- go.mod | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2afac92..521f1bd 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ idle for a configurable duration. that have not been used for `deleteAfter`; active keys are kept alive. Stop it with `Close()`. - **Type-safe & generic** — `Storage[K, V]` and `BucketLimiter[K]` use Go - generics (Go 1.25+). + generics (Go 1.26+). - **Extensible** — implement the `Storage` interface for a custom in-process store, or the `Limiter` interface for a custom algorithm. - **HTTP middleware example** — with accurate `Retry-After` and `RateLimit-*` @@ -114,7 +114,7 @@ sequenceDiagram go get github.com/slashdevops/ratelimiter ``` -Requires Go 1.25.2 or newer. +Requires Go 1.26 or newer. ## Quick start diff --git a/go.mod b/go.mod index f611eba..ebf5f3f 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/slashdevops/ratelimiter -go 1.25.2 +go 1.26.0 require golang.org/x/time v0.15.0