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