add support for wasm

This commit is contained in:
Darien Raymond
2018-08-27 20:56:49 +02:00
parent 16051587b5
commit 20f10c78b3
7 changed files with 19 additions and 2 deletions
+1
View File
@@ -1,4 +1,5 @@
// +build !windows
// +build !wasm
package buf
+2
View File
@@ -1,3 +1,5 @@
// +build !wasm
package buf
import (
+12
View File
@@ -0,0 +1,12 @@
package buf
import (
"io"
"syscall"
)
const useReadv = false
func NewReadVReader(reader io.Reader, rawConn syscall.RawConn) Reader {
panic("not implemented")
}
+2
View File
@@ -1,3 +1,5 @@
// +build !wasm
package buf_test
import (
-2
View File
@@ -1,5 +1,3 @@
// +build windows
package buf
import (