Functions
normal functions(single and multiple return), variadic functions, anonymous functions
func name_of_func(first, two) return_type{
return variable
}package main
import (
"fmt"
)
func plus(a ,b int) int{
return a + b
}
func main() {
r := plus(3,4)
fmt.Println(r)
}Last updated
