package
Version:
v0.0.0-...-d41341d
Opens a new window with list of versions in this module.
Published: Jun 9, 2018
License: BSD-3-Clause
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 6
Opens a new window with list of known importers.
Documentation
¶
Package simpleshape is a simple interface for representing geometric shapes.
Calculates the area of a shape. The area calculation is based on the type of shape s.
type Rectangle struct {
}
type Shape interface {
Area() float64
}
The Shape type represents a geometric shape.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.