- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for Goff (0.24 sec)
-
misc/linkcheck/linkcheck.go
if res.StatusCode/100 == 3 { newURL, err := res.Location() if err != nil { return fmt.Errorf("resolving redirect: %v", err) } if !strings.HasPrefix(newURL.String(), *root) { // Skip off-site redirects. return nil } crawl(newURL.String(), url) return nil } if res.StatusCode != 200 { return errors.New(res.Status) } slurp, err := io.ReadAll(res.Body) res.Body.Close()
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) -
src/bytes/bytes_test.go
if len(bmbuf) < maxSize { bmbuf = make([]byte, maxSize) } for _, n := range sizes { for _, off := range []int{0, 1, 4, 7} { buf1 := bmbuf[off : off+n] buf2Start := (len(bmbuf) / 2) + off buf2 := bmbuf[buf2Start : buf2Start+n] buf1[n-1] = 'x' buf2[n-1] = 'x' b.Run(fmt.Sprint(n, off), func(b *testing.B) { b.SetBytes(int64(n)) for i := 0; i < b.N; i++ { eq := Equal(buf1, buf2)
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) -
doc/asm.html
One is to update the assembler to support that instruction, which is straightforward but only worthwhile if it's likely the instruction will be used again. Instead, for simple one-off cases, it's possible to use the <code>BYTE</code> and <code>WORD</code> directives to lay down explicit data into the instruction stream within a <code>TEXT</code>.
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Tue Nov 28 19:15:27 GMT 2023 - 36.3K bytes - Viewed (0) -
api/go1.20.txt
pkg syscall (freebsd-riscv64), const IP_RSVP_OFF = 16 #53466 pkg syscall (freebsd-riscv64), const IP_RSVP_OFF ideal-int #53466 pkg syscall (freebsd-riscv64), const IP_RSVP_ON = 15 #53466 pkg syscall (freebsd-riscv64), const IP_RSVP_ON ideal-int #53466 pkg syscall (freebsd-riscv64), const IP_RSVP_VIF_OFF = 18 #53466 pkg syscall (freebsd-riscv64), const IP_RSVP_VIF_OFF ideal-int #53466
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Fri Feb 17 21:23:32 GMT 2023 - 602.6K bytes - Viewed (0) -
src/archive/zip/zip_test.go
} buf := make([]byte, ss.Size()) for off := int64(0); off < ss.Size(); off++ { for size := 1; size <= int(ss.Size()-off); size++ { readBuf := buf[:size] n, err := ss.ReadAt(readBuf, off) if off < ss.Size()-keep { if err != errDiscardedBytes { t.Errorf("off %d, size %d = %v, %v (%q); want errDiscardedBytes", off, size, n, err, readBuf[:n]) } continue }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Mar 27 18:23:49 GMT 2024 - 19.5K bytes - Viewed (0) -
src/bytes/reader_test.go
r := NewReader([]byte("0123456789")) tests := []struct { off int64 seek int n int want string wantpos int64 readerr error seekerr string }{ {seek: io.SeekStart, off: 0, n: 20, want: "0123456789"}, {seek: io.SeekStart, off: 1, n: 1, want: "1"}, {seek: io.SeekCurrent, off: 1, wantpos: 3, n: 2, want: "34"}, {seek: io.SeekStart, off: -1, seekerr: "bytes.Reader.Seek: negative position"},
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Dec 13 18:45:54 GMT 2021 - 8K bytes - Viewed (0) -
src/bytes/reader.go
return } // ReadAt implements the [io.ReaderAt] interface. func (r *Reader) ReadAt(b []byte, off int64) (n int, err error) { // cannot modify state - see io.ReaderAt if off < 0 { return 0, errors.New("bytes.Reader.ReadAt: negative offset") } if off >= int64(len(r.s)) { return 0, io.EOF } n = copy(b, r.s[off:]) if n < len(b) { err = io.EOF } return }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 17:10:31 GMT 2023 - 3.9K bytes - Viewed (1) -
src/bytes/bytes.go
// TrimLeftFunc treats s as UTF-8-encoded bytes and returns a subslice of s by slicing off // all leading UTF-8-encoded code points c that satisfy f(c). func TrimLeftFunc(s []byte, f func(r rune) bool) []byte { i := indexFunc(s, f, false) if i == -1 { return nil } return s[i:] } // TrimRightFunc returns a subslice of s by slicing off all trailing // UTF-8-encoded code points c that satisfy f(c).
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Feb 19 19:51:15 GMT 2024 - 33.8K bytes - Viewed (0) -
src/cmd/asm/internal/asm/parse.go
} count = int16((x & 31) << 7) } default: p.errorf("unexpected %s in register shift", tok.String()) } if p.arch.Family == sys.ARM64 { off, err := arch.ARM64RegisterShift(r1, op, count) if err != nil { p.errorf(err.Error()) } return off } else { return int64((r1 & 15) | op<<5 | count) } } // registerExtension parses a register with extension or arrangement.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Feb 21 14:34:57 GMT 2024 - 36.9K bytes - Viewed (0) -
api/go1.1.txt
pkg syscall (darwin-386), const IP_RETOPTS = 8 pkg syscall (darwin-386), const IP_RF = 32768 pkg syscall (darwin-386), const IP_RSVP_OFF = 16 pkg syscall (darwin-386), const IP_RSVP_ON = 15 pkg syscall (darwin-386), const IP_RSVP_VIF_OFF = 18 pkg syscall (darwin-386), const IP_RSVP_VIF_ON = 17 pkg syscall (darwin-386), const IP_STRIPHDR = 23 pkg syscall (darwin-386), const IP_TOS = 3
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Mar 31 20:37:15 GMT 2022 - 2.6M bytes - Viewed (1)