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