- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 70 for best (0.13 sec)
-
src/cmd/cgo/internal/swig/swig_test.go
} re := regexp.MustCompile(`[vV]ersion +(\d+)([.]\d+)?([.]\d+)?`) matches := re.FindSubmatch(out) if matches == nil { // Can't find version number; hope for the best. t.Logf("failed to find swig version, continuing") return } var parseError error atoi := func(s string) int { x, err := strconv.Atoi(s) if err != nil && parseError == nil {
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:07 GMT 2023 - 3.7K bytes - Viewed (0) -
src/arena/arena.go
This functionality in this package is mostly captured in the Arena type. Arenas allocate large chunks of memory for Go values, so they're likely to be inefficient for allocating only small amounts of small Go values. They're best used in bulk, on the order of MiB of memory allocated on each use. Note that by allowing for this limited form of manual memory allocation that use-after-free bugs are possible with regular Go values. This package
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Oct 12 20:23:36 GMT 2022 - 4.3K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/04-vuln.yml
id: what-did-you-do attributes: label: "What did you do?" description: "If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on [go.dev/play](https://go.dev/play) is best." validations: required: true - type: textarea id: actual-behavior attributes: label: "What did you see happen?" validations: required: true - type: textarea
Others - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Jan 04 23:31:17 GMT 2024 - 1.9K bytes - Viewed (0) -
src/archive/tar/strconv.go
return "", "", s, ErrHeader } n -= int64(len(nStr) + 1) // convert from index in s to index in rest if n <= 0 { return "", "", s, ErrHeader } // Extract everything between the space and the final newline. rec, nl, rem := rest[:n-1], rest[n-1:n], rest[n:] if nl != "\n" { return "", "", s, ErrHeader } // The first equals separates the key from the value.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 01 14:28:42 GMT 2023 - 9K bytes - Viewed (0) -
src/archive/zip/zip_test.go
}, } // write a zip file buf := new(bytes.Buffer) w := NewWriter(buf) for _, test := range headerTests { h := &FileHeader{ Name: test.name, Extra: test.extra, } _, err := w.CreateHeader(h) if err != test.wanterr { t.Errorf("error=%v, want %v", err, test.wanterr) } } if err := w.Close(); err != nil { t.Fatal(err) } }
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/archive/tar/stat_unix.go
func statUnix(fi fs.FileInfo, h *Header, doNameLookups bool) error { sys, ok := fi.Sys().(*syscall.Stat_t) if !ok { return nil } h.Uid = int(sys.Uid) h.Gid = int(sys.Gid) if doNameLookups { // Best effort at populating Uname and Gname. // The os/user functions may fail for any number of reasons // (not implemented on that platform, cgo not enabled, etc). if u, ok := userMap.Load(h.Uid); ok { h.Uname = u.(string)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 3.2K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/03-gopls.yml
attributes: label: "What did you do?" description: "If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on [go.dev/play](https://go.dev/play) is better. A failing unit test is the best." validations: required: true - type: textarea id: actual-behavior attributes: label: "What did you see happen?" validations: required: true - type: textarea
Others - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Jan 04 23:31:17 GMT 2024 - 1.8K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/amd64enc_extra.s
// EVEX: embedded broadcasting. VADDPD.BCST (AX), X2, K1, X1 // 62f1ed195808 VADDPD.BCST.Z (AX), X2, K1, X1 // 62f1ed995808 VADDPD.BCST (AX), Y2, K1, Y1 // 62f1ed395808 VADDPD.BCST.Z (AX), Y2, K1, Y1 // 62f1edb95808 VADDPD.BCST (AX), Z2, K1, Z1 // 62f1ed595808 VADDPD.BCST.Z (AX), Z2, K1, Z1 // 62f1edd95808 VMAXPD.BCST (AX), Z2, K1, Z1 // 62f1ed595f08 VMAXPD.BCST.Z (AX), Z2, K1, Z1 // 62f1edd95f08
Others - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Apr 11 18:32:50 GMT 2023 - 57.6K bytes - Viewed (0) -
src/archive/tar/strconv_test.go
t.Errorf("fitsInBase256(%d, %d): got %v, want %v", v.in, v.width, ok, v.ok) } } } func TestParseNumeric(t *testing.T) { vectors := []struct { in string want int64 ok bool }{ // Test base-256 (binary) encoded values. {"", 0, true}, {"\x80", 0, true}, {"\x80\x00", 0, true}, {"\x80\x00\x00", 0, true}, {"\xbf", (1 << 6) - 1, true}, {"\xbf\xff", (1 << 14) - 1, true},
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Feb 09 05:28:50 GMT 2021 - 14K bytes - Viewed (0) -
src/archive/zip/reader_test.go
func TestFS(t *testing.T) { for _, test := range []struct { file string want []string }{ { "testdata/unix.zip", []string{"hello", "dir/bar", "readonly"}, }, { "testdata/subdir.zip", []string{"a/b/c"}, }, } { test := test t.Run(test.file, func(t *testing.T) { t.Parallel() z, err := OpenReader(test.file) if err != nil {
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)