mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
This case was missing in the selector expression processing. Fixes #1083.
20 lines
214 B
Go
20 lines
214 B
Go
package main
|
|
|
|
import (
|
|
"net"
|
|
"os"
|
|
)
|
|
|
|
func writeBufs(bufs ...[]byte) error {
|
|
b := net.Buffers(bufs)
|
|
_, err := b.WriteTo(os.Stdout)
|
|
return err
|
|
}
|
|
|
|
func main() {
|
|
writeBufs([]byte("hello"))
|
|
}
|
|
|
|
// Output:
|
|
// hello
|