Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Point2 ¶
type Point2 struct {
X, Y int
}
Point2 implements the gospec.Equality interface, so it can be compared for equality in GoSpec specs.
If the type can be used as a value, like in this case, then extra care is needed when writing the Equals method because the other object can be a value or a pointer to a value.
Click to show internal directories.
Click to hide internal directories.