chore: move samples into fixtures (#1321)

This commit is contained in:
Ludovic Fernandez authored and GitHub committed 2025-11-28 17:21:09 +01:00
1 parent aa6fad0ea0
commit 5a9289952f
24 files changed
+8 -8

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
// Package sample is used as test input for golangci action.
package sample
import (
"crypto/md5"
"encoding/hex"
"errors"
)
// Hash~
func Hash(data string) string {
retError()
retError2()
h := md5.New()
h.Write([]byte(data))
return hex.EncodeToString(h.Sum(nil))
}
func retError() error {
return errors.New("err")
}
func retError2() error {
return errors.New("err2")
}