- Sort Score
- Result 10 results
- Languages All
Results 71 - 76 of 76 for newScanner (0.48 sec)
-
src/cmd/compile/internal/ssa/_gen/rulegen.go
return } // oprules contains a list of rules for each block and opcode blockrules := map[string][]Rule{} oprules := map[string][]Rule{} // read rule file scanner := bufio.NewScanner(text) rule := "" var lineno int var ruleLineno int // line number of "=>" for scanner.Scan() { lineno++ line := scanner.Text() if i := strings.Index(line, "//"); i >= 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 02 22:09:21 UTC 2023 - 48.7K bytes - Viewed (0) -
src/net/http/serve_test.go
if err != nil { t.Fatalf("Dial: %v", err) } defer c.Close() if _, err := io.WriteString(c, "GET / HTTP/1.1\r\nHost: foo\r\n\r\n"); err != nil { t.Fatal(err) } bs := bufio.NewScanner(c) var got strings.Builder for bs.Scan() { if strings.TrimSpace(bs.Text()) == "" { break } got.WriteString(bs.Text()) got.WriteByte('\n') } if err := bs.Err(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0) -
src/net/http/transport_test.go
t.Error(err) return } defer conn.Close() io.WriteString(conn, "HTTP/1.1 101 Switching Protocols Hi\r\nConnection: upgRADe\r\nUpgrade: foo\r\n\r\nSome buffered data\n") bs := bufio.NewScanner(conn) bs.Scan() fmt.Fprintf(conn, "%s\n", strings.ToUpper(bs.Text())) <-done })) req, _ := NewRequest("GET", cst.ts.URL, nil) req.Header.Set("Upgrade", "foo")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 192.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
f, err := os.Open(os.ExpandEnv(file)) if err != nil { return nil, err } defer f.Close() var lines []string ln := uint(1) scanner := bufio.NewScanner(f) for scanner.Scan() && ln <= end { if ln >= start { lines = append(lines, scanner.Text()) } ln++ } return &ssa.FuncLines{Filename: file, StartLineno: start, Lines: lines}, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"ErrNegativeCount", Var, 0}, {"ErrTooLong", Var, 1}, {"MaxScanTokenSize", Const, 1}, {"NewReadWriter", Func, 0}, {"NewReader", Func, 0}, {"NewReaderSize", Func, 0}, {"NewScanner", Func, 1}, {"NewWriter", Func, 0}, {"NewWriterSize", Func, 0}, {"ReadWriter", Type, 0}, {"ReadWriter.Reader", Field, 0}, {"ReadWriter.Writer", Field, 0}, {"Reader", Type, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
api/go1.1.txt
pkg archive/zip, type FileHeader struct, UncompressedSize64 uint64 pkg bufio, const MaxScanTokenSize = 65536 pkg bufio, const MaxScanTokenSize ideal-int pkg bufio, func NewScanner(io.Reader) *Scanner pkg bufio, func ScanBytes([]uint8, bool) (int, []uint8, error) pkg bufio, func ScanLines([]uint8, bool) (int, []uint8, error) pkg bufio, func ScanRunes([]uint8, bool) (int, []uint8, error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 31 20:37:15 UTC 2022 - 2.6M bytes - Viewed (0)