Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for gos (0.09 sec)

  1. src/cmd/vet/vet_test.go

    			}
    
    			dir := filepath.Join("testdata", pkg)
    			gos, err := filepath.Glob(filepath.Join(dir, "*.go"))
    			if err != nil {
    				t.Fatal(err)
    			}
    			asms, err := filepath.Glob(filepath.Join(dir, "*.s"))
    			if err != nil {
    				t.Fatal(err)
    			}
    			var files []string
    			files = append(files, gos...)
    			files = append(files, asms...)
    
    			errchk(cmd, files, t)
    		})
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/stmt0.go

    		var ch2 /* ERROR "declared and not used: ch2" */ chan bool
    	case i := <-ch2:
    		print(i + 1)
    	}
    }
    
    func gos() {
    	go 1; /* ERROR "must be function call" */
    	go int /* ERROR "go requires function call, not conversion" */ (0)
    	go ( /* ERROR "expression in go must not be parenthesized" */ gos())
    	go gos()
    	var c chan int
    	go close(c)
    	go len /* ERROR "go discards result" */ (c)
    }
    
    func defers() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top