Sign in
go
/
website
/
fa6fe8b9e993020027675e7122d2c6d5b7bf76f5
/
.
/
_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)
}