- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for FindSubmatch (0.09 sec)
-
misc/go_android_exec/main.go
} func (f *exitCodeFilter) Finish() (int, error) { // f.buf could be empty, contain a partial match of exitRe, or // contain a full match. b := f.buf.Bytes() defer f.buf.Reset() match := f.exitRe.FindSubmatch(b) if len(match) < 2 || match[1] == nil { // Not a full match. Flush. if _, err := f.w.Write(b); err != nil { return 0, err } return 0, fmt.Errorf("no exit code (in %q)", string(b)) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 21 17:46:57 UTC 2023 - 15.3K bytes - Viewed (0)