Skip to content

Instantly share code, notes, and snippets.

@wingyplus
Created April 15, 2014 18:49
Show Gist options
  • Save wingyplus/10758608 to your computer and use it in GitHub Desktop.
Save wingyplus/10758608 to your computer and use it in GitHub Desktop.
package main
type A struct {
}
func (a A) Hello() string {
return "hello"
}
type B struct {
A
}
func (b B) Hello() string {
return b.A.Hello() + " world"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment