Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Breiding (0.19 sec)

  1. src/bytes/reader.go

    // io.ByteScanner, and io.RuneScanner interfaces by reading from
    // a byte slice.
    // Unlike a [Buffer], a Reader is read-only and supports seeking.
    // The zero value for Reader operates like a Reader of an empty slice.
    type Reader struct {
    	s        []byte
    	i        int64 // current reading index
    	prevRune int   // index of previous rune; or < 0
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  2. src/archive/zip/example_test.go

    			log.Fatal(err)
    		}
    	}
    
    	// Make sure to check the error on Close.
    	err := w.Close()
    	if err != nil {
    		log.Fatal(err)
    	}
    }
    
    func ExampleReader() {
    	// Open a zip archive for reading.
    	r, err := zip.OpenReader("testdata/readme.zip")
    	if err != nil {
    		log.Fatal(err)
    	}
    	defer r.Close()
    
    	// Iterate through the files in the archive,
    	// printing some of their contents.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 27 00:22:03 GMT 2016
    - 2K bytes
    - Viewed (0)
  3. src/bufio/example_test.go

    	scanner := bufio.NewScanner(os.Stdin)
    	for scanner.Scan() {
    		fmt.Println(scanner.Text()) // Println will add back the final '\n'
    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "reading standard input:", err)
    	}
    }
    
    // Return the most recent call to Scan as a []byte.
    func ExampleScanner_Bytes() {
    	scanner := bufio.NewScanner(strings.NewReader("gopher"))
    	for scanner.Scan() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/buildid_linux.go

    	}
    	defer f.Close()
    
    	c := 0
    sections:
    	for i, s := range f.Sections {
    		if s.Type != elf.SHT_NOTE {
    			continue
    		}
    
    		d, err := s.Data()
    		if err != nil {
    			t.Logf("reading data of note section %d: %v", i, err)
    			continue
    		}
    
    		for len(d) > 0 {
    
    			// ELF standards differ as to the sizes in
    			// note sections.  Both the GNU linker and
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  5. src/archive/zip/register.go

    // simultaneously, but each returned writer will be used only by
    // one goroutine at a time.
    type Compressor func(w io.Writer) (io.WriteCloser, error)
    
    // A Decompressor returns a new decompressing reader, reading from r.
    // The [io.ReadCloser]'s Close method must be used to release associated resources.
    // The Decompressor itself must be safe to invoke from multiple goroutines
    // simultaneously, but each returned reader will be used only by
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  6. src/cmd/addr2line/addr2line_test.go

    	for scanner.Scan() {
    		f := strings.Fields(scanner.Text())
    		if len(f) < 3 {
    			continue
    		}
    		syms[f[2]] = f[0]
    	}
    	if err := scanner.Err(); err != nil {
    		t.Fatalf("error reading symbols: %v", err)
    	}
    	return syms
    }
    
    func runAddr2Line(t *testing.T, dbgExePath, addr string) (funcname, path, lineno string) {
    	cmd := testenv.Command(t, addr2linePath(t), dbgExePath)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. misc/linkcheck/linkcheck.go

    		crawl(newURL.String(), url)
    		return nil
    	}
    	if res.StatusCode != 200 {
    		return errors.New(res.Status)
    	}
    	slurp, err := io.ReadAll(res.Body)
    	res.Body.Close()
    	if err != nil {
    		log.Fatalf("Error reading %s body: %v", url, err)
    	}
    	if *verbose {
    		log.Printf("Len of %s: %d", url, len(slurp))
    	}
    	body := string(slurp)
    	for _, ref := range localLinks(body) {
    		if *verbose {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/lex/stack.go

    // license that can be found in the LICENSE file.
    
    package lex
    
    import (
    	"text/scanner"
    
    	"cmd/internal/src"
    )
    
    // A Stack is a stack of TokenReaders. As the top TokenReader hits EOF,
    // it resumes reading the next one down.
    type Stack struct {
    	tr []TokenReader
    }
    
    // Push adds tr to the top (end) of the input stack. (Popping happens automatically.)
    func (s *Stack) Push(tr TokenReader) {
    	s.tr = append(s.tr, tr)
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jan 09 22:33:23 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  9. src/cmd/addr2line/main.go

    	if flag.NArg() != 1 {
    		usage()
    	}
    
    	f, err := objfile.Open(flag.Arg(0))
    	if err != nil {
    		log.Fatal(err)
    	}
    	defer f.Close()
    
    	tab, err := f.PCLineTable()
    	if err != nil {
    		log.Fatalf("reading %s: %v", flag.Arg(0), err)
    	}
    
    	stdin := bufio.NewScanner(os.Stdin)
    	stdout := bufio.NewWriter(os.Stdout)
    
    	for stdin.Scan() {
    		p := stdin.Text()
    		if strings.Contains(p, ":") {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 2.3K bytes
    - Viewed (0)
Back to top