github.com/angenalZZZ/gofunc@v0.0.0-20210507121333-48ff1be3917b/f/global_var_test.go (about) 1 package f_test 2 3 import ( 4 "github.com/angenalZZZ/gofunc/f" 5 "testing" 6 ) 7 8 func TestGoVersion(t *testing.T) { 9 t.Logf("Go Version: %s", f.GoVersion) 10 } 11 12 func TestNumCPU(t *testing.T) { 13 t.Logf("Number of CPUs: %d * 16 = %d", f.NumCPU, f.NumCPUx16) 14 }