mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
core/lint: upgrade golangci-lint, replace interface{} with any (#5099)
* core/lint: upgrade golangci-lint, replace interface{} with any * regen proto
This commit is contained in:
parent
614048ae9c
commit
1a5b8b606f
135 changed files with 341 additions and 340 deletions
|
@ -92,7 +92,7 @@ func (su *SignedURL) Validate() error {
|
|||
|
||||
// hmacURL takes a redirect url string and timestamp and returns the base64
|
||||
// encoded HMAC result.
|
||||
func hmacURL(key []byte, data ...interface{}) string {
|
||||
func hmacURL(key []byte, data ...any) string {
|
||||
h := cryptutil.GenerateHMAC([]byte(fmt.Sprint(data...)), key)
|
||||
return base64.URLEncoding.EncodeToString(h)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue