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