mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-02 10:52:49 +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
|
@ -11,7 +11,7 @@ import (
|
|||
// MustHash returns the xxhash of an arbitrary value or struct. Returns 0
|
||||
// on error.
|
||||
// NOT SUITABLE FOR CRYTOGRAPHIC HASHING.
|
||||
func MustHash(v interface{}) uint64 {
|
||||
func MustHash(v any) uint64 {
|
||||
hash, err := Hash(v)
|
||||
if err != nil {
|
||||
hash = 0
|
||||
|
@ -21,7 +21,7 @@ func MustHash(v interface{}) uint64 {
|
|||
|
||||
// Hash returns the xxhash of an arbitrary value or struct.
|
||||
// NOT SUITABLE FOR CRYTOGRAPHIC HASHING.
|
||||
func Hash(v interface{}) (uint64, error) {
|
||||
func Hash(v any) (uint64, error) {
|
||||
opts := &hashstructure.HashOptions{
|
||||
Hasher: xxhash.New(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue