restore Windows compatibility (#860) (#861)

This commit is contained in:
Alessandro Ros
2025-08-12 12:45:06 +02:00
committed by GitHub
parent 78a8f619f7
commit cf1e074137
8 changed files with 113 additions and 38 deletions

View File

@@ -0,0 +1,10 @@
//go:build !linux && !windows
package readbuffer
import "fmt"
// ReadBuffer returns the read buffer size.
func ReadBuffer(pc PacketConn) (int, error) {
return 0, fmt.Errorf("read buffer size is unimplemented on the current operating system")
}