Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for badGoFile (0.13 sec)

  1. src/cmd/go/internal/modindex/read.go

    		// InvalidGoFiles if they do have an error.
    		if strings.HasSuffix(name, ".go") {
    			if error := tf.error(); error != "" {
    				badGoFile(name, errors.New(tf.error()))
    				continue
    			} else if parseError := tf.parseError(); parseError != "" {
    				badGoFile(name, parseErrorFromString(tf.parseError()))
    				// Fall through: we still want to list files with parse errors.
    			}
    		}
    
    		var shouldBuild = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. src/go/build/build.go

    			if line != 0 {
    				com, err := strconv.Unquote(qcom)
    				if err != nil {
    					badGoFile(name, fmt.Errorf("%s:%d: cannot parse import comment", filename, line))
    				} else if p.ImportComment == "" {
    					p.ImportComment = com
    					firstCommentFile = name
    				} else if p.ImportComment != com {
    					badGoFile(name, fmt.Errorf("found import comments %q (%s) and %q (%s) in %s", p.ImportComment, firstCommentFile, com, name, p.Dir))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
Back to top