Sign in
go
/
website
/
267f6b2af39434a3c69173c635ae7252815845c7
/
.
/
_content
/
talks
/
2015
/
tricks
/
anon-interface.go
blob: 71c0c02bb1e49aea12a33364e843406273dc19f3 [
file
] [
log
] [
blame
]
// +build ignore
package main
import (
"bytes"
"fmt"
)
func main() {
var s interface {
String() string
} = bytes.NewBufferString("I'm secretly a fmt.Stringer!")
fmt.Println(s.String())
}