Function in Go

package main

import (  
    "fmt"
)

func calculateArea(h, w int) int {  
    var area = h * w
    return area
}
func main() {  
    height, width := 90, 6
    area := calculateArea(height, width)
    fmt.Println("Total area is", area)
}


output: Total area is 540