- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 76 for newScanner (0.11 sec)
-
hack/conformance/check_conformance_test_requirements.go
regSkip := regexp.MustCompile(patternSkip) fileInput, err := os.ReadFile(e2eFile) if err != nil { return fmt.Errorf("Failed to read file %s: %w", e2eFile, err) } scanner := bufio.NewScanner(bytes.NewReader(fileInput)) scanner.Split(bufio.ScanLines) for scanner.Scan() { line := scanner.Text() if regStartConformance.MatchString(line) { if inConformanceCode {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 29 06:30:57 UTC 2023 - 4.1K bytes - Viewed (0) -
src/internal/trace/raw/textreader.go
names map[string]event.Type s *bufio.Scanner } // NewTextReader creates a new reader for the trace text format. func NewTextReader(r io.Reader) (*TextReader, error) { tr := &TextReader{s: bufio.NewScanner(r)} line, err := tr.nextLine() if err != nil { return nil, err } trace, line := readToken(line) if trace != "Trace" { return nil, fmt.Errorf("failed to parse header") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 4.9K bytes - Viewed (0) -
src/runtime/pprof/vminfo_darwin_test.go
// MALLOC guard page 103d00000-103d04000 [ 16K 0K 0K 0K] ---/rwx SM=NUL banner := "==== Non-writable regions for process" grabbing := false sc := bufio.NewScanner(bytes.NewReader(data)) for sc.Scan() { l := sc.Text() if grabbing { p := strings.Fields(l) if len(p) > 7 && p[0] == "__TEXT" && p[7] == "r-x/rwx" { locs := strings.Split(p[1], "-")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 19:59:50 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/util/cmdutil.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 5.3K bytes - Viewed (0) -
cmd/streaming-v4-unsigned.go
} break } // Parse trailers. wantTrailers := make(map[string]struct{}, len(cr.trailers)) for k := range cr.trailers { wantTrailers[strings.ToLower(k)] = struct{}{} } input := bufio.NewScanner(bytes.NewReader(valueBuffer.Bytes())) for input.Scan() { line := strings.TrimSpace(input.Text()) if line == "" { continue } // Find first separator.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat May 06 02:53:12 UTC 2023 - 6.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/testdata/hist.gdb-dbg.nexts
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 04 20:41:52 UTC 2019 - 4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/testdata/hist.dlv-dbg.nexts
64: var reader io.Reader = strings.NewReader(cannedInput) //gdb-dbg=(hist/A) // TODO cannedInput/A is missing if this code is in 'test' instead of 'main' 65: if len(os.Args) > 1 { 73: scanner := bufio.NewScanner(reader) 74: for scanner.Scan() { //gdb-opt=(scanner/A) 75: s := scanner.Text() 76: i, err := strconv.ParseInt(s, 10, 64) 77: if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i) 81: hist = ensure(int(i), hist)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 23 18:05:07 UTC 2018 - 3.8K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/testdata/hist.dlv-opt.nexts
64: var reader io.Reader = strings.NewReader(cannedInput) //gdb-dbg=(hist/A) // TODO cannedInput/A is missing if this code is in 'test' instead of 'main' 65: if len(os.Args) > 1 { 73: scanner := bufio.NewScanner(reader) 74: for scanner.Scan() { //gdb-opt=(scanner/A) 75: s := scanner.Text() 76: i, err := strconv.ParseInt(s, 10, 64) 77: if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i) 81: hist = ensure(int(i), hist)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 04 20:41:52 UTC 2019 - 3.7K bytes - Viewed (0) -
docs/debugging/reorder-disks/main.go
result := make(map[string]string) mountInfo, err := os.Open("/proc/self/mountinfo") if err != nil { return nil, err } defer mountInfo.Close() scanner := bufio.NewScanner(mountInfo) for scanner.Scan() { s := strings.Split(scanner.Text(), " ") if len(s) != 11 { return nil, errors.New("unsupported /proc/self/mountinfo format") } result[s[2]] = s[9] }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.4K bytes - Viewed (0) -
pkg/auth/authorizer/abac/abac.go
// comments in files, and identification of errors by line number. file, err := os.Open(path) if err != nil { return nil, err } defer file.Close() scanner := bufio.NewScanner(file) pl := make(PolicyList, 0) decoder := abac.Codecs.UniversalDecoder() i := 0 unversionedLines := 0 for scanner.Scan() { i++ p := &abac.Policy{} b := scanner.Bytes()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 11 03:11:30 UTC 2021 - 7.4K bytes - Viewed (0)