Sign in
go
/
talks
/
297473c9fe5fbefa9ca0d6491bd268a2b612f49c
/
.
/
2013
/
distsys
/
writebuffer2.go
blob: 90d9d5aa6261f479b99b14e1ef10514c373b8a56 [
file
] [
log
] [
blame
]
package main
import (
"bytes"
"fmt"
"io"
"os"
)
func main() {
b := new(bytes.Buffer)
fmt.Fprintf(b, "hello, %s\n", "world")
io.Copy(os.Stdout, b)
}