Source file src/os/pipe_wasm.go
1 // Copyright 2023 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build wasm 6 7 package os 8 9 import "syscall" 10 11 // Pipe returns a connected pair of Files; reads from r return bytes written to w. 12 // It returns the files and an error, if any. 13 func Pipe() (r *File, w *File, err error) { 14 // Neither GOOS=js nor GOOS=wasip1 have pipes. 15 return nil, nil, NewSyscallError("pipe", syscall.ENOSYS) 16 } 17