add factory method newAntiNodeCache()

This commit is contained in:
2024-12-08 20:11:03 +00:00
parent c1b8cb3f18
commit 5ed54e672b
4 changed files with 7 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ type graph struct {
}
func newGraph() *graph {
return &graph{[]string{}, []antenna{}, newAntiNodeCache()}
return &graph{antinodes: newAntiNodeCache()}
}
func (g *graph) String() string {