mirror of
https://github.com/kidoman/embd
synced 2025-07-03 11:57:38 +02:00
host specific drivers can now be loaded separately
this ensures cleaner abstractions/code and will ensure that the produced binary is as small as possible. a convenience package is provided to easily load all hosts easily: "github.com/kidoman/embd/host/all"
This commit is contained in:
parent
57328c979d
commit
c35deeb17c
44 changed files with 1184 additions and 1018 deletions
3
utils.go
3
utils.go
|
@ -2,8 +2,9 @@ package embd
|
|||
|
||||
import "path/filepath"
|
||||
|
||||
// FindFirstMatchingFile finds the first glob match in the filesystem.
|
||||
// Inspiration: https://github.com/mrmorphic/hwio/blob/master/hwio.go#L451
|
||||
func findFirstMatchingFile(glob string) (string, error) {
|
||||
func FindFirstMatchingFile(glob string) (string, error) {
|
||||
matches, err := filepath.Glob(glob)
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue