From b8ece60c79d6fa886848abaa27928e966150f494 Mon Sep 17 00:00:00 2001 From: Adam Bouqdib Date: Sat, 4 Nov 2023 14:43:38 +0000 Subject: [PATCH] chore: fix linter --- benchmarks/go.sum | 2 +- decoder/decode.go | 4 ++-- pool.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmarks/go.sum b/benchmarks/go.sum index b8f5ff0..f03b4d6 100644 --- a/benchmarks/go.sum +++ b/benchmarks/go.sum @@ -32,7 +32,7 @@ github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/gorilla/schema v1.2.0 h1:YufUaxZYCKGFuAq3c96BOhjgd5nmXiOY9NGzF247Tsc= github.com/gorilla/schema v1.2.0/go.mod h1:kgLaKoK1FELgZqMAVxx/5cbj0kT+57qxUrAlIO2eleU= diff --git a/decoder/decode.go b/decoder/decode.go index c779b35..ed13b53 100644 --- a/decoder/decode.go +++ b/decoder/decode.go @@ -12,8 +12,8 @@ var ( ) type Getter interface { - Get(string) string - Values(string) []string + Get(key string) string + Values(key string) []string } type Decoder struct { diff --git a/pool.go b/pool.go index 356c216..5c6cba9 100644 --- a/pool.go +++ b/pool.go @@ -7,7 +7,7 @@ import ( type pool[T any] interface { Get() *T - Put(*T) + Put(x *T) } type requestPool[T any] struct {