Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseErrorFromString (0.41 sec)

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

    	}
    	s, err := json.Marshal(p)
    	if err != nil {
    		panic(err) // This should be impossible because scanner.Error contains only strings and ints.
    	}
    	return string(s)
    }
    
    // parseErrorFromString converts a string produced by parseErrorToString back
    // to an error.  An empty string is converted to a nil error, and all
    // other strings are expected to be JSON-marshaled parseError structs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modindex/read.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
    		if !ctxt.goodOSArchFile(name, allTags) && !ctxt.UseAllFiles {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top