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