jaypipes / pcidb

Small golang library for querying PCI database (pciids) information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow configuration options to be passed to module constructor

jaypipes opened this issue · comments

This is the sister issue to ghw's jaypipes/ghw#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.