/warp

Primary LanguageGo

Warp

Build Status codecov Scrutinizer Code Quality Go Report Card GoDoc

Warp is a small library that abstracts Linux/macOS ARP table (read only).

Usage example:

scanner, err := warp.NewARPScanner()
if err != nil {
    panic(err)
}

entries, err := scanner.Scan()
if err != nil {
    panic(err)
}

for _, entry := range entries {
    fmt.Println(entry)
}

You can check the full documentation at godoc or you can fetch the repo and run make doc to run a local godoc.

There is also an example file in the repo that you can look at for more "advanced" examples.

What is missing

Windows support is missing, it should not be too hard to introduce, if you want it feel free to open a PR.

Contribution

Fork and submit a PR, tests and linters run in CI and you can also run them locally. Run make help to see all the available commands (and their descriptions).