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