Skip to content

Instantly share code, notes, and snippets.

@kamaln7
Created September 22, 2021 22:28
Show Gist options
  • Save kamaln7/12dff3ef68aefc4c7c3cc261439c9f8b to your computer and use it in GitHub Desktop.
Save kamaln7/12dff3ef68aefc4c7c3cc261439c9f8b to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"runtime"
)
func main() {
fmt.Println("runtime.NumCPU():", runtime.NumCPU())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment