Create a function named myFunction
and call it inside main()
.
package main
import ("fmt")
func @(12) {
fmt.Println("I just got executed!")
}
func main() {
@(12)
}
package main
import ("fmt")
func myFunction() {
fmt.Println("I just got executed!")
}
func main() {
myFunction()
}