Skip to content

koron-go/atermsearch

Repository files navigation

koron-go/atermsearch

PkgGoDev Actions/Go Go Report Card

Package to search for Aterm devices. It is reimplementation of Aterm search tool in Go.

Getting Started

$ 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)
}

About

Search for Aterm devices

Resources

License

Stars

Watchers

Forks

Packages

No packages published