Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for FindSubmatch (0.15 sec)

  1. src/cmd/go/internal/work/exec.go

    	sh := b.BackgroundShell()
    	out, err := sh.runOut(".", nil, "swig", "-version")
    	if err != nil {
    		return err
    	}
    	re := regexp.MustCompile(`[vV]ersion +(\d+)([.]\d+)?([.]\d+)?`)
    	matches := re.FindSubmatch(out)
    	if matches == nil {
    		// Can't find version number; hope for the best.
    		return nil
    	}
    
    	major, err := strconv.Atoi(string(matches[1]))
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
Back to top