fix: go.mod parsing (#1165)

This commit is contained in:
Ludovic Fernandez
2025-02-13 13:35:39 +01:00
committed by GitHub
parent 051d919338
commit ea34ee71d6
7 changed files with 1172 additions and 3 deletions

26
sample-go-tool/sample.go Normal file
View File

@ -0,0 +1,26 @@
// Package main is used as test input for golangci action.
package main
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")
}