From c6369cbd094068e05311fd456ed6b3d5ec00ec80 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Mon, 18 Jan 2021 18:10:45 -0800 Subject: [PATCH] go: adding library file for library support --- pciids.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pciids.go diff --git a/pciids.go b/pciids.go new file mode 100644 index 0000000..5676802 --- /dev/null +++ b/pciids.go @@ -0,0 +1,25 @@ +package pciids + +import ( + "github.com/powersj/pciids/pkg/file" + "github.com/powersj/pciids/pkg/ids" + "github.com/powersj/pciids/pkg/query" +) + +// PCIID type. +type PCIID = ids.PCIID + +// All returns all PCI IDs. +var All = query.All + +// LatestFile returns the latest PCI IDs database file. +var LatestFile = file.Latest + +// Parse will parse a PCI IDs file. +var Parse = ids.Parse + +// QueryDevice will query using a specific PCI ID device pair. +var QueryDevice = query.Device + +// QuerySubDevice will query using a specific PCI ID device and subdevice pair. +var QuerySubDevice = query.SubDevice