You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: modernize go codebase per golangci-lint recommendations
Apply Go 1.18+ improvements and performance optimizations:
- replace interface{} with any for modern Go syntax
- use strings.Builder instead of += in loops for better performance
- replace reflect.TypeOf with reflect.TypeFor for type safety
- use strings.CutPrefix instead of HasPrefix + TrimPrefix
- simplify conditionals using max() builtin
- replace manual loops with slices.Contains
These changes improve code readability, performance, and align with current Go best practices.
0 commit comments