structs

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

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

Go to latest
Published: Jul 8, 2022 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 Person

type Person struct {
	AgeYears int
	Name     string
	Friends  []Person
}

func NewPerson

func NewPerson() Person

func NewPersonPointer

func NewPersonPointer() *Person

func NewPersonPointer2

func NewPersonPointer2() *Person

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