package
Version:
v0.0.0-...-3facaca
Opens a new window with list of versions in this module.
Published: Oct 29, 2020
License: CC0-1.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ComputeArea(shapes []interface{}) (totalArea float64)
type Circle struct {
Radius int
}
type Rectangle struct {
Width int
Height int
}
type Shape interface {
Area() float64
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.