v1

package
v0.0.0-...-cdffa6e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 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 (circle Circle) Area() float64

func (Circle) Perimeter

func (circle Circle) Perimeter() float64

type Rectangle

type Rectangle struct {
	// contains filtered or unexported fields
}

func (Rectangle) Area

func (rect Rectangle) Area() float64

func (Rectangle) Perimeter

func (rect Rectangle) Perimeter() float64

type Shape

type Shape interface {
	Area() float64
	Perimeter() float64
}

Jump to

Keyboard shortcuts

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