shapes

package
v0.0.0-...-0ef9f9d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Circle

type Circle struct {
	Radius float64
}

func (Circle) Area

func (c Circle) Area() float64

type Rectangle

type Rectangle struct {
	Width  float64
	Height float64
}

func (Rectangle) Area

func (r Rectangle) Area() float64

type Shape

type Shape interface {
	Area() float64
}

type Triangle

type Triangle struct {
	Base   float64
	Height float64
}

func (Triangle) Area

func (t Triangle) Area() float64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL