jaypipes / pcidb

Small golang library for querying PCI database (pciids) information
Apache License 2.0
33 stars 15 forks source link

Allow configuration options to be passed to module constructor #12

Closed jaypipes closed 5 years ago

jaypipes commented 5 years ago

This is the sister issue to ghw's https://github.com/jaypipes/ghw/issues/86.

Create an Options struct pointer and sets appropriate chroot value. Modify the pcidb.New() function to accept one or more Options struct pointers. If none are passed, construct a default Options from the environs vars and use that.