commit | ca65f226aa2bf480e68eb85ab18ea92e673a7d8b | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Wed Feb 28 20:41:57 2024 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 28 20:41:57 2024 +0000 |
tree | b3008d971474ed75a8f8438b492ca1e991386050 | |
parent | 0a5bd422d66a70885b8dea1293bf441db270a2ba [diff] |
[go.mod] Update to go1.22 ... and start using two new features in go1.22 (see https://tip.golang.org/doc/go1.22#language): - Loop variables are created anew per-loop instance, so `i := i` patterns in for loops are no longer necessary. - For loops now support the syntax `for i := range 100`, which is equivalent to `for i := 0; i < 100; i++`. Change-Id: I4a5a16fd1eed681245a183de12816ca94f5a8432 Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/infra/+/999394 Reviewed-by: Ina Huh <ihuh@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com> Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com>