Go library with embedded DB for getting MAC address vendor information.
Source database from maclookup.app.
go get -u github.com/n0madic/macvendor
To get detailed information about a MAC address, use Lookup
function:
import "github.com/n0madic/macvendor"
vendor, err := macvendor.Lookup("00:00:5e:00:53:01")
if err != nil {
panic(err)
}
fmt.Println(vendor.CompanyName)
When the vendor base is no longer required, you can free memory in the heap using
macvendor.FreeEmbeddedDB()
Frees more than 6 megabytes.