Sign in
go
/
website
/
ca1fc50a3bcb2e30da453bcc132e9aed9387a3b1
/
.
/
_content
/
talks
/
2015
/
tricks
/
method-values-1.go
blob: c1a8ab127d2bb165bce94dcc830b5d8b356a8611 [
file
] [
log
] [
blame
]
// +build ignore
package main
import (
"bytes"
"os"
)
func main() {
var f func(*bytes.Buffer, string) (int, error)
var buf bytes.Buffer
f = (*bytes.Buffer).WriteString
f(&buf, "y u no buf.WriteString?")
buf.WriteTo(os.Stdout)
}