Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for Locher (0.43 sec)

  1. src/bytes/example_test.go

    		fmt.Printf("Cut(%q, %q) = %q, %q, %v\n", s, sep, before, after, found)
    	}
    	show("Gopher", "Go")
    	show("Gopher", "ph")
    	show("Gopher", "er")
    	show("Gopher", "Badger")
    	// Output:
    	// Cut("Gopher", "Go") = "", "pher", true
    	// Cut("Gopher", "ph") = "Go", "er", true
    	// Cut("Gopher", "er") = "Goph", "", true
    	// Cut("Gopher", "Badger") = "Gopher", "", false
    }
    
    func ExampleCutPrefix() {
    	show := func(s, sep string) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. src/bufio/example_test.go

    		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() {
    		fmt.Println(len(scanner.Bytes()) == 6)
    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "shouldn't see an error scanning a string")
    	}
    	// Output:
    	// true
    }
    
    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)
  3. src/bytes/bytes_test.go

    	tests := [...]struct {
    		s      string
    		count  int
    		errStr string
    	}{
    		0: {"--", -2147483647, "negative"},
    		1: {"", int(^uint(0) >> 1), ""},
    		2: {"-", 10, ""},
    		3: {"gopher", 0, ""},
    		4: {"-", -1, "negative"},
    		5: {"--", -102, "negative"},
    		6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
    	}
    
    	for i, tt := range tests {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. src/archive/zip/fuzz_test.go

    			}
    			files = append(files, file{header: &f.FileHeader, content: content})
    			if _, err := r.Open(f.Name); err != nil {
    				continue
    			}
    		}
    
    		// If we were unable to read anything out of the archive don't
    		// bother trying to roundtrip it.
    		if len(files) == 0 {
    			return
    		}
    
    		w := NewWriter(io.Discard)
    		for _, f := range files {
    			ww, err := w.CreateHeader(f.header)
    			if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  5. src/archive/zip/reader_test.go

    	}
    
    	r, err := f.Open()
    	if err != nil {
    		t.Errorf("%v", err)
    		return
    	}
    
    	// For very large files, just check that the size is correct.
    	// The content is expected to be all zeros.
    	// Don't bother uncompressing: too big.
    	if ft.Content == nil && ft.File == "" && ft.Size > 0 {
    		if size != ft.Size {
    			t.Errorf("%v: uncompressed size %#x, want %#x", ft.Name, size, ft.Size)
    		}
    		r.Close()
    		return
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  6. doc/go1.17_spec.html

    to define an interface called <code>Locker</code>:
    </p>
    
    <pre>
    type Locker interface {
    	Lock()
    	Unlock()
    }
    </pre>
    
    <p>
    If <code>S1</code> and <code>S2</code> also implement
    </p>
    
    <pre>
    func (p T) Lock() { … }
    func (p T) Unlock() { … }
    </pre>
    
    <p>
    they implement the <code>Locker</code> interface as well
    as the <code>File</code> interface.
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  7. misc/chrome/gophertool/gopher.png

    gopher.png...
    PNG Image
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 23 21:05:18 GMT 2011
    - 5.5K bytes
    - Viewed (0)
  8. src/archive/tar/fuzz_test.go

    			if _, err := io.Copy(buf, r); err != nil {
    				continue
    			}
    			files = append(files, file{header: hdr, content: buf.Bytes()})
    		}
    
    		// If we were unable to read anything out of the archive don't
    		// bother trying to roundtrip it.
    		if len(files) == 0 {
    			return
    		}
    
    		out := bytes.NewBuffer(nil)
    		w := NewWriter(out)
    		for _, f := range files {
    			if err := w.WriteHeader(f.header); err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  9. misc/chrome/gophertool/gopher.js

    Brad Fitzpatrick <******@****.***> 1436570231 -0600
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sat Jul 11 14:36:33 GMT 2015
    - 1.2K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg unicode, var Other *RangeTable
    pkg unicode, var Other_Alphabetic *RangeTable
    pkg unicode, var Other_Default_Ignorable_Code_Point *RangeTable
    pkg unicode, var Other_Grapheme_Extend *RangeTable
    pkg unicode, var Other_ID_Continue *RangeTable
    pkg unicode, var Other_ID_Start *RangeTable
    pkg unicode, var Other_Lowercase *RangeTable
    pkg unicode, var Other_Math *RangeTable
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top