- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for FindSubmatch (0.15 sec)
-
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)