Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestListTemplateContextFunction (0.23 sec)

  1. src/cmd/go/go_test.go

    `)
    	tg.tempFile("bar.go", `package main
    /*
    #cgo pkg-config: bar
    */
    import "C"
    func main() {}
    `)
    	tg.run("run", tg.path("bar.go"))
    }
    
    func TestListTemplateContextFunction(t *testing.T) {
    	t.Parallel()
    	for _, tt := range []struct {
    		v    string
    		want string
    	}{
    		{"GOARCH", runtime.GOARCH},
    		{"GOOS", runtime.GOOS},
    		{"GOROOT", testGOROOT},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
Back to top