Fix parseGoModule function to use strings.SplitSeq and improve efficiency

- Update parseGoModule to use strings.SplitSeq for better performance
- Change GoModule.Module field to GoModule.Name for consistency
- Use strings.CutPrefix instead of HasPrefix + TrimPrefix pattern
- Add early break after parsing go version line
- Update template references to use .GoModule.Name instead of .GoModule

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Felipe M 2025-07-15 14:45:11 +02:00
parent 2e2a95d7d6
commit d7ac783efc
No known key found for this signature in database
GPG key ID: 52E5D65FCF99808A
3 changed files with 13 additions and 10 deletions

View file

@ -6,7 +6,7 @@ linters-settings:
gofmt:
simplify: true
goimports:
local-prefixes: {{.GoModule}}
local-prefixes: {{.GoModule.Name}}
govet:
check-shadowing: true
enable-all: true