chore(tun): not linux or not darwin tagged files

This commit is contained in:
Quentin McGaw
2023-05-29 07:32:17 +00:00
parent caabaf918e
commit eca182a32f
6 changed files with 24 additions and 9 deletions

View File

@@ -1,13 +1,7 @@
package tun
import "golang.org/x/sys/unix"
type Tun struct {
mknod func(path string, mode uint32, dev int) (err error)
}
type Tun struct{}
func New() *Tun {
return &Tun{
mknod: unix.Mknod,
}
return &Tun{}
}