Online Go Compiler

package main import ( "fmt" ) type Rectangle struct { breadth int len int } func (r *Rectangle)Area() int{ return r. len * r.breadth } func main(){ rectangle := Rectangle{ breadth: 10, len: 8, } fmt.Println("Area of the rectangle:", rectangle, " is: ", rectangle.Area()) }