Generate the USB ID data using 'go generate'

This commit is contained in:
Kyle Lemons
2016-04-03 20:07:28 -07:00
parent ec7ebf8e87
commit efc611f455
4 changed files with 131 additions and 2 deletions

View File

@@ -60,6 +60,8 @@ func LoadFromURL(url string) error {
return nil
}
//go:generate go run regen/regen.go --template regen/load_data.go.tpl -o load_data.go
func init() {
ids, cls, err := ParseIDs(strings.NewReader(usbIdListData))
if err != nil {