Posted on 28th April 2025|37 views
Does go run on a virtual machine?
Posted on 28th April 2025| views
No, Go does not run on virtual machine let me show you an example which prints function values
package main
import "fmt"
func plus(x int, y int)
int { return x + y }
func plusPlus(x, y, z int)
int { return x + y + z }
func main() {
funcp := plus
funcpp := plusPlus
fmt.Println(funcp)
fmt.Println(funcpp)
fmt.Println(funcp(6, 7))
fmt.Println(funcpp(6, 7, 8)) }