GO程複習---關於goroutine和channel

1、Go程 1.實現go程golang go程的實現十分簡單,只須要在該函數前加上關鍵字go,便可成爲一個gotoutine併發 package main import "fmt" func goRoutine1(){ fmt.Println("11111111111111111") } func goRoutine2(){ fmt.Println("2222222222222222")
相關文章
相關標籤/搜索