Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseVersionInterval (0.27 sec)

  1. src/cmd/go/internal/modcmd/edit.go

    	}
    	return path, version, nil
    }
    
    // parseVersionInterval parses a single version like "v1.2.3" or a closed
    // interval like "[v1.2.3,v1.4.5]". Note that a single version has the same
    // representation as an interval with equal upper and lower bounds: both
    // Low and High are set.
    func parseVersionInterval(arg string) (modfile.VersionInterval, error) {
    	if !strings.HasPrefix(arg, "[") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/mod/modfile/rule.go

    		if wrappederr != nil {
    			*errs = append(*errs, *wrappederr)
    			return
    		}
    		f.Replace = append(f.Replace, replace)
    
    	case "retract":
    		rationale := parseDirectiveComment(block, line)
    		vi, err := parseVersionInterval(verb, "", &args, dontFixRetract)
    		if err != nil {
    			if strict {
    				wrapError(err)
    				return
    			} else {
    				// Only report errors parsing intervals in the main module. We may
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top