Changes
PR #1877 by ksylvan: modernize: update GitHub Actions and modernize Go code
- Modernize GitHub Actions and Go code with latest stdlib features
- Upgrade GitHub Actions to latest versions (v6, v21) and add modernization check step
- Replace strings manipulation with
strings.CutPrefixandstrings.CutSuffix - Replace manual loops with
slices.Containsfor validation and usestrings.SplitSeqfor iterator-based splitting - Replace
fmt.Sprintfwithfmt.Appendffor efficiency and simplify padding calculation withmaxbuiltin