Sign in
go
/
website
/
cd3dc4298d39aefc210f4400a7c67155472ed457
/
.
/
_content
/
talks
/
2015
/
tricks
/
method-values-2.go
blob: 5ee0b41e5fe414bff6173d0dee190d16cf0ecf10 [
file
] [
log
] [
blame
]
// +build ignore
package main
import (
"bytes"
"os"
)
func main() {
var f func(string) (int, error)
var buf bytes.Buffer
f = buf.WriteString
f("Hey... ")
f("this *is* cute.")
buf.WriteTo(os.Stdout)
}