feat: automatic module directories (#1315)

This commit is contained in:
Ludovic Fernandez authored and GitHub committed 2025-11-21 16:03:27 +01:00
1 parent f3ae99f5f5
commit e7fa5ac41e
18 files changed
+541 -275

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")
}