Skip to content

Instantly share code, notes, and snippets.

@Reine0017
Created August 9, 2022 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Reine0017/12c79177d341adb2f6310034fc06ea27 to your computer and use it in GitHub Desktop.
Save Reine0017/12c79177d341adb2f6310034fc06ea27 to your computer and use it in GitHub Desktop.
Working Go Routine
package main
import (
"fmt"
"time"
)
func myFunc() {
fmt.Println("Reine")
}
func main() {
fmt.Println("Hello")
go myFunc()
fmt.Println("World")
time.Sleep(2 * time.Second)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment