--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
package main
import "fmt"
type Parent struct {	Attr1 string}
type Parenter interface {	GetParent() Parent}
type Child struct {	Parent //embed	Attr   string}
func (c Child) GetParent() Parent {	return c.Parent}
func setf(p Parenter) {	fmt.Println(p)}
func main() {	var ch Child	ch.Attr = "1"	ch.Attr1 = "2"
	setf(ch)}I am trying to pass the parent struct type to a method