Documentation ¶ Overview ¶ This is an example of using composition and interfaces. This is something we want to do in Go. We will group common types by their behavior and not by their state. This pattern does provide a good design principle in a Go program. Source Files ¶ View all Source files example2.go Click to show internal directories. Click to hide internal directories.