fix: remove duplicate containsSubstring helper and update README for M21+M22

Removes redeclared containsSubstring from network_scan_test.go (already
defined in profile_test.go in the same package). Updates README with 91
endpoints, 19 tables, network discovery API section, Prometheus endpoint,
and M21/M22 roadmap entries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
shankar0123
2026-03-24 23:43:42 -04:00
parent 4f90be9311
commit 52af81537d
3 changed files with 33 additions and 27 deletions
-10
View File
@@ -232,13 +232,3 @@ func TestExpandEndpoints(t *testing.T) {
t.Errorf("expected 192.168.1.1:8443, got %s", endpoints[1])
}
}
// containsSubstring checks if a string contains a substring (helper)
func containsSubstring(s, substr string) bool {
for i := 0; i <= len(s)-len(substr); i++ {
if s[i:i+len(substr)] == substr {
return true
}
}
return false
}