Função anônima
func () {
fmt.Println("Function without name")
}
SAMER SAEID
func () {
fmt.Println("Function without name")
}
package main
import "fmt"
func main() {
// anonymous function
var greet = func() {
fmt.Println("Hello, how are you")
}
// function call
greet()
}
//anonymous function
var greet = func (){
// code
}
// function call
greet()