You defined say inside main, but Super is defined outside main, so say is not in scope there. Move the definition of say outside of main, so that it is a top-level (global) declaration.
Andy PS Even after you do that, your program will print 9000 rather than 19000, because Super is modifying a copy of goku. If you want to modify goku itself, you need to pass a pointer to Super. -- 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.