Skip to content

Go library with embedded DB for getting MAC address vendor information

License

Notifications You must be signed in to change notification settings

n0madic/macvendor

Repository files navigation

macvendor

Go library with embedded DB for getting MAC address vendor information.

Source database from maclookup.app.

Installation

go get -u github.com/n0madic/macvendor

Usage

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.

About

Go library with embedded DB for getting MAC address vendor information

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages