Concurrency / Create goroutines / Essential Go

Run Settings
LanguageGo
Language Version
Run Command
package main import ( "fmt" "time" ) func mult(x, y int) { fmt.Printf("%d * %d = %d\n", x, y, x*y) } func main() { go mult(1, 2) // first execution, non-blocking go mult(3, 4) // second execution, also non-blocking // that's not how you do it in real code time.Sleep(200 * time.Millisecond) }
Editor Settings
Theme
Key bindings
Full width
Lines