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:
parent
2e2a95d7d6
commit
d7ac783efc
3 changed files with 13 additions and 10 deletions
|
@ -6,7 +6,7 @@ linters-settings:
|
|||
gofmt:
|
||||
simplify: true
|
||||
goimports:
|
||||
local-prefixes: {{.GoModule}}
|
||||
local-prefixes: {{.GoModule.Name}}
|
||||
govet:
|
||||
check-shadowing: true
|
||||
enable-all: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue