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