From a905850b0bbf2cc29905b21206d51a967bd54b26 Mon Sep 17 00:00:00 2001 From: Snider Date: Sun, 22 Feb 2026 21:00:16 +0000 Subject: [PATCH] refactor: apply go fix modernizers for Go 1.26 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automated fixes: interface{} → any, range-over-int, t.Context(), wg.Go(), strings.SplitSeq, strings.Builder, slices.Contains, maps helpers, min/max builtins. Co-Authored-By: Virgil --- edge_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edge_test.go b/edge_test.go index a26797a..854415e 100644 --- a/edge_test.go +++ b/edge_test.go @@ -180,7 +180,7 @@ func TestLayout_DeepNesting_10Levels(t *testing.T) { // Build 10 levels of nested layouts current := NewLayout("C").C(Raw("deepest")) - for i := 0; i < 9; i++ { + for range 9 { current = NewLayout("C").C(current) } @@ -210,7 +210,7 @@ func TestLayout_DeepNesting_20Levels(t *testing.T) { ctx := NewContext() current := NewLayout("C").C(Raw("bottom")) - for i := 0; i < 19; i++ { + for range 19 { current = NewLayout("C").C(current) } @@ -229,7 +229,7 @@ func TestLayout_DeepNesting_MixedSlots(t *testing.T) { // Alternate slot types at each level: C -> L -> C -> L -> ... current := NewLayout("C").C(Raw("leaf")) - for i := 0; i < 5; i++ { + for i := range 5 { if i%2 == 0 { current = NewLayout("HLCRF").L(current) } else {