MCPcopy Create free account
hub / github.com/mmcgrana/gobyexample / rect

Struct rect

examples/interfaces/interfaces.go:19–21  ·  view source on GitHub ↗

For our example we'll implement this interface on `rect` and `circle` types.

Source from the content-addressed store, hash-verified

17// For our example we'll implement this interface on
18// `rect` and `circle` types.
19type rect struct {
20 width, height float64
21}
22type circle struct {
23 radius float64
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected