structs

package
v0.0.0-...-b03bf0d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Perimeter

func Perimeter(rectangle Rectangle) float64

Types

type Circle

type Circle struct {
	Radius float64
}

func (Circle) Area

func (c Circle) Area() float64

type Rectangle

type Rectangle struct {
	Height float64
	Width  float64
}

func (Rectangle) Area

func (r Rectangle) Area() float64

type Shape

type Shape interface {
	Area() float64
}

type Triangle

type Triangle struct {
	Height float64
	Width  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