feat(01-02): embed loader, registry with Aho-Corasick, and filled test stubs

- loader.go with go:embed definitions/*.yaml for compile-time embedding
- registry.go with List(), Get(), Stats(), AC() methods
- Aho-Corasick automaton built from all provider keywords at NewRegistry()
- pkg/providers/definitions/ with 3 YAML files for embed
- All 5 provider tests pass: load, get, stats, AC, schema validation
This commit is contained in:
salvacybersec
2026-04-05 00:10:56 +03:00
parent 4fcdc42c70
commit a9859b3384
7 changed files with 173 additions and 0 deletions

1
go.mod
View File

@@ -3,6 +3,7 @@ module github.com/salvacybersec/keyhunter
go 1.26.1
require (
github.com/petar-dambovaliev/aho-corasick v0.0.0-20250424160509-463d218d4745
github.com/stretchr/testify v1.11.1
gopkg.in/yaml.v3 v3.0.1
)