mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
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
|