silverwind and GitHub
32728fc581
chore: misc go 1.27 tweaks ( #39069 )
...
Follow-up to https://github.com/go-gitea/gitea/pull/39068 , which
disabled `modernize` entirely.
- re-enable `modernize`, with only the new `embedlit` rule disabled. It
flattens embedded struct literals across ~145 files, and orphans imports
in 6 of them that the fixer does not remove
- apply the rest of the suite: `errors.AsType`, `reflect.TypeAssert`,
`strings.Cut`, and dropping the legacy import comment
- use the new stdlib `uuid` package, `github.com/google/uuid` becomes
indirect
- use `strings.CutLast` in place of manual `LastIndex` slicing in label
scopes, email domains and the diff tree list
- take the header lint skip dirs from the `go.mod` `ignore` directive
and skip dot-directories, instead of hardcoding the list
Assisted-by: Claude Code:claude-opus-5
2026-08-24 18:26:10 +00:00
..
2026-08-20 19:06:21 +00:00
2026-02-01 10:35:51 +00:00
2026-08-09 10:25:06 +00:00
2026-08-07 00:11:34 +00:00
2026-08-24 18:26:10 +00:00
2026-05-26 15:49:31 -07:00
2026-08-22 09:40:49 +00:00
2026-08-09 10:25:06 +00:00
2025-04-09 16:34:38 +00:00
2026-07-30 16:43:36 +00:00
2026-03-31 17:22:18 +00:00
2026-06-08 18:18:58 +00:00
2026-07-24 02:05:38 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-07-23 08:29:28 +00:00
2026-07-15 17:30:01 +00:00
2026-06-08 18:18:58 +00:00
2026-08-24 18:26:10 +00:00
2026-08-09 10:25:06 +00:00
2026-08-09 10:25:06 +00:00
2026-08-12 10:42:26 +00:00
2026-08-09 10:25:06 +00:00
2026-05-26 15:49:31 -07:00
2026-08-06 18:07:36 +08:00
2026-07-12 17:14:09 +00:00
2026-08-17 17:43:34 +00:00
2026-06-04 00:12:02 +08:00
2026-06-04 00:12:02 +08:00
2026-08-17 07:59:41 +00:00
2026-08-19 14:15:42 +08:00
2026-08-24 07:28:17 +00:00
2026-05-29 01:12:11 +00:00
2026-08-11 11:47:20 +02:00
2026-07-17 22:28:59 +08:00
2026-08-24 18:26:10 +00:00
2026-08-12 19:30:26 +00:00
2026-07-21 13:41:54 +00:00
2026-05-26 15:49:31 -07:00
2026-08-09 10:25:06 +00:00
2026-05-26 15:49:31 -07:00
2026-05-29 01:12:11 +00:00
2026-05-26 15:49:31 -07:00
2026-08-24 07:28:17 +00:00
2026-06-03 17:40:38 +00:00
2026-07-17 22:28:59 +08:00
2026-08-19 14:15:42 +08:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-08-03 04:40:02 +00:00
2026-08-22 01:30:41 +00:00
2026-05-26 15:49:31 -07:00
2026-07-08 23:52:06 +02:00
2026-05-26 15:49:31 -07:00
2026-08-22 08:59:37 +00:00
2026-08-09 10:25:06 +00:00
2025-02-21 00:05:40 +08:00
2026-08-09 10:25:06 +00:00
2026-08-24 18:26:10 +00:00
2026-06-14 18:26:22 +00:00
2026-08-09 11:32:50 +00:00
2026-08-07 16:35:30 +00:00
2026-08-24 18:26:10 +00:00
2026-08-09 10:25:06 +00:00
2026-05-26 15:49:31 -07:00
2025-01-21 18:57:07 +00:00
2026-07-23 14:31:29 +00:00
2026-08-17 17:43:34 +00:00
2026-08-22 11:04:35 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-08-19 12:50:06 +00:00
2026-08-09 10:25:06 +00:00
2026-03-26 00:37:48 +08:00
2026-05-26 15:49:31 -07:00
2026-07-12 17:14:09 +00:00
2025-01-09 09:21:47 +08:00
2026-08-24 18:26:10 +00:00
2026-08-24 18:26:10 +00:00
2026-08-24 18:26:10 +00:00
2026-02-20 16:12:22 +00:00
2026-06-04 13:38:56 +00:00