Sign in
go
/
website
/
ca1fc50a3bcb2e30da453bcc132e9aed9387a3b1
/
.
/
_content
/
talks
/
2015
/
tricks
/
embed.go
blob: 0eb7e9ca8ae72162e234c3ea51d34a4cd61c332c [
file
] [
log
] [
blame
]
// +build ignore
package main
import "fmt"
// BEGIN OMIT
type A struct {
s string
}
func (a A) String() string {
return fmt.Sprintf("A's String method called: %v", a.s)
}
type B struct {
A
}
func main() {
b := B{}
b.s = "some value"
fmt.Println(b)
}