Исходники и презентации
This commit is contained in:
10
lessons/goroutines_and_scheduler/goroutines_number/main.go
Normal file
10
lessons/goroutines_and_scheduler/goroutines_number/main.go
Normal file
@ -0,0 +1,10 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Printf("Goroutines: %d\n", runtime.NumGoroutine())
|
||||
}
|
||||
Reference in New Issue
Block a user