Go Functions
June 17, 2019
function declaration
Syntaxt
func <nameOfTheFunction>(arg1 typ1, arg2 type2) <returnType> () { ... }e.g.
func add(a int, b int) int { return a+b } -- Above function can be written as func add(a, b int) int { }e.g.
func location(city string) (state, country string) { ... ... return "BLR", "India" }