blob: a987d6971a8ca6ddb4a823e2bb06afd48235efb2 [file] [log] [blame]
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)
}