File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import (
3030 "flag"
3131 "fmt"
3232 "log"
33+ "maps"
3334 "os"
3435 "path/filepath"
3536 "strings"
@@ -75,9 +76,7 @@ func main() {
7576 if err != nil {
7677 log .Fatalf ("failed to load %s: %v" , fullPath , err )
7778 }
78- for k , v := range attrs {
79- allAttrs [k ] = v
80- }
79+ maps .Copy (allAttrs , attrs )
8180 }
8281
8382 // 2. Validate all gathered attributes against schemas
Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ replace github.com/GoogleChrome/webstatus.dev/lib => ../../lib
66
77replace github.com/GoogleChrome/webstatus.dev/lib/gen => ../../lib/gen
88
9- require github.com/GoogleChrome/webstatus.dev/lib v0.0.0-00010101000000-000000000000
9+ require (
10+ github.com/GoogleChrome/webstatus.dev/lib v0.0.0-00010101000000-000000000000
11+ github.com/google/go-cmp v0.7.0
12+ )
1013
1114require (
1215 cel.dev/expr v0.25.1 // indirect
You can’t perform that action at this time.
0 commit comments