Hi Guys, i want to make something like this
type si struct { s *sync_task.Sync_task } func (this *si) Process() { ... some code here ... this.Process(); } Basically i want to extend object in another package... and this works. Now i'd just want to extend it without creating "real" struct, code type x struct { y int } type xadvanced *x func (this *x) increment() { this.y++ fmt.Println(this.y) } test2 := xadvanced(&test) test2.increment() ---> ERROR https://play.golang.org/ What im doing wrong and how to access methods of x object when having pointer to xadvanced... -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.