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