Package to search for Aterm devices. It is reimplementation of Aterm search tool in Go.
$ go get github.com/koron-go/atermsearch@latest
Example
package main
import (
"context"
"fmt"
"github.com/koron-go/atermsearch"
)
func main() {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
defer cancel()
dev, err := atermsearch.Search(ctx, "192.168.0.123")
if err != nil {
log.Fatal(err)
}
fmt.Printf("Aterm device: %+v\n", dev)
}