Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builtindb #2

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Builtindb #2

wants to merge 6 commits into from

Conversation

gcla
Copy link

@gcla gcla commented Apr 30, 2018

Hi again :-) This builds on the previous pull request, and provides support for compiling the OUI DB directly into the binary, via go-bindata. Then you can use the OUI DB mapping without loading the mapping from the filesystem.

Best wishes,
Graham

gcla added 6 commits April 29, 2018 23:42
This allows users to build binaries with the database embedded within,
so not requiring it be loaded from the filesystem separately. Note
that if the database changes, the following command should be run

$ go generate

This will rebuild assets.go, which contains the OUI db. The go-bindata
package is required for this:

$ go get -u github.com/jteeuwen/go-bindata/...
This is checked-in so that users do not need to re-run go generate to
use the built-in database.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant