Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shape ¶
type Shape interface { // Circle returns a Circle and a boolean. When the second return value is true, // the Shape is the returned Circle. Circle() (Circle, bool) // Rectangle returns a Rectangle and a boolean. When the second return value is true, // the Shape is the returned Rectangle. Rectangle() (Rectangle, bool) }
A Shape is one of
- Circle
- Rectangle
In each implementation exactly one of the methods should have the second return value be true.
Click to show internal directories.
Click to hide internal directories.