// Package definitions carries the VIA definition files that ship with this tool. // // The files here are the vendor's own, kept as they are served, and they are // built into the binary so that `go install` delivers them. Without that, an // installed tool finds no definitions anywhere: `go install` copies the binary // to $GOPATH/bin and creates no data directory, and the Impact 80's file cannot // be fetched either, because that board is not in VIA's collection. // // A file here is the same file a definitions directory holds, not a second copy // and not a transcription of it. A file the user places in a definitions // directory takes precedence over the one built in, so an installed tool can be // given a newer or a corrected definition without rebuilding. package definitions import "embed" // Vendored holds the definition files shipped with the tool, keyed by file name. // //go:embed *.json var Vendored embed.FS