14 lines
324 B
Go
14 lines
324 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
)
|
|
|
|
func main() {
|
|
fmt.Print("You are using ", runtime.Compiler, " ")
|
|
fmt.Println("on a", runtime.GOARCH, "machine")
|
|
fmt.Println("Using Go version", runtime.Version())
|
|
fmt.Println("Number of CPUs:", runtime.NumCPU())
|
|
fmt.Println("Number of Goroutines:", runtime.NumGoroutine())
|
|
}
|