When designing a Go program, remember that there is no type hierarchy in Go. You create the actual Elephant, Tiger, etc., but not Animal since Animal is just a classification.
In my fictional world, I may have Alice, Bob, and Charlie. If I need a banker, I just put up an ads with the job specifications. Anybody can apply as long as they meet my requirements. If Bob wants to be a banker and yet he doesn't have the skills, he needs to train himself until he has what it takes to be a banker. This is Go world. There is no need to create a Banker type. You just need Alice, Bob, and Charlie. In some other languages, you need the Banker type. In fact, you may actually also need the Person type and create a hierarchy of types. Go doesn't work that way. -- 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.