//go:build !linux package sdk import "fmt" type tapInterface struct { Name string MTU int } func openTap(name string, mtu int) (*tapInterface, error) { return nil, fmt.Errorf("TAP device requires Linux") } func (ti *tapInterface) Read(buf []byte) (int, error) { return 0, fmt.Errorf("not supported") } func (ti *tapInterface) Write(buf []byte) error { return fmt.Errorf("not supported") } func (ti *tapInterface) Close() error { return nil } func (ti *tapInterface) SetIP(cidr string) error { return fmt.Errorf("TAP device requires Linux") }