- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 155 for original (0.09 sec)
-
src/encoding/json/scanner_test.go
t.Fatalf("Indent error: %v", err) } b1 := buf1.Bytes() if !bytes.Equal(b1, b) { t.Error("Indent(Indent(jsonBig)) != Indent(jsonBig):") diff(t, b1, b) return } // should get back to original buf1.Reset() if err := Compact(&buf1, b); err != nil { t.Fatalf("Compact error: %v", err) } b1 = buf1.Bytes() if !bytes.Equal(b1, jsonBig) { t.Error("Compact(Indent(jsonBig)) != jsonBig:")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 16:00:37 UTC 2023 - 6.9K bytes - Viewed (0) -
src/slices/sort.go
func SortFunc[S ~[]E, E any](x S, cmp func(a, b E) int) { n := len(x) pdqsortCmpFunc(x, 0, n, bits.Len(uint(n)), cmp) } // SortStableFunc sorts the slice x while keeping the original order of equal // elements, using cmp to compare elements in the same way as [SortFunc]. func SortStableFunc[S ~[]E, E any](x S, cmp func(a, b E) int) { stableCmpFunc(x, len(x), cmp) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 23:54:41 UTC 2024 - 5.8K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/looprotate.go
after[p.ID] = []*Block{b} for { nextIdx := idToIdx[b.ID] + 1 if nextIdx >= len(f.Blocks) { // reached end of function (maybe impossible?) break } nextb := f.Blocks[nextIdx] if nextb == p { // original loop predecessor is next break } if loopnest.b2l[nextb.ID] == loop { after[p.ID] = append(after[p.ID], nextb) } b = nextb }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 3K bytes - Viewed (0) -
src/cmd/go/testdata/script/modfile_flag.txt
env OLD_GOFLAGS=$GOFLAGS env GOFLAGS=-modfile=go.gen.mod go generate -modfile=go.alt.mod . env GOFLAGS=$OLD_GOFLAGS grep example.com/exclude go.gen.mod ! grep example.com/exclude go.alt.mod # The original files should not have been modified. cmp go.mod go.mod.orig cmp go.sum go.sum.orig # If the alternate mod file does not have a ".mod" suffix, an error # should be reported. cp go.alt.mod goaltmod
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:18:16 UTC 2022 - 2.6K bytes - Viewed (0) -
src/compress/gzip/gunzip.go
z := new(Reader) if err := z.Reset(r); err != nil { return nil, err } return z, nil } // Reset discards the [Reader] z's state and makes it equivalent to the // result of its original state from [NewReader], but reading from r instead. // This permits reusing a [Reader] rather than allocating a new one. func (z *Reader) Reset(r io.Reader) error { *z = Reader{ decompressor: z.decompressor,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 23:20:03 UTC 2023 - 8.5K bytes - Viewed (0) -
src/cmd/go/testdata/vcstest/svn/test2-svn-git.txt
stdout '^7f800d2ac276dd7042ea0e8d7438527d236fd098$' # Fake a clone from an origin repo at this commit. git remote add origin https://vcs-test.swtch.com/git/README-only mkdir .git/refs/remotes/origin echo 'ref: refs/remotes/origin/master' cp stdout .git/refs/remotes/origin/HEAD unquote '# pack-refs with: peeled fully-peeled \n7f800d2ac276dd7042ea0e8d7438527d236fd098 refs/remotes/origin/master\n' cp stdout .git/packed-refs
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 08 19:37:03 UTC 2022 - 3.5K bytes - Viewed (0) -
src/cmd/go/testdata/vcstest/svn/test1-svn-git.txt
stdout '^7f800d2ac276dd7042ea0e8d7438527d236fd098$' # Fake a clone from an origin repo at this commit. git remote add origin https://vcs-test.swtch.com/git/README-only mkdir .git/refs/remotes/origin echo 'ref: refs/remotes/origin/master' cp stdout .git/refs/remotes/origin/HEAD unquote '# pack-refs with: peeled fully-peeled \n7f800d2ac276dd7042ea0e8d7438527d236fd098 refs/remotes/origin/master\n' cp stdout .git/packed-refs
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 08 19:37:03 UTC 2022 - 4.5K bytes - Viewed (0) -
src/os/zero_copy_linux.go
// tryLimitedReader tries to assert the io.Reader to io.LimitedReader, it returns the io.LimitedReader, // the underlying io.Reader and the remaining amount of bytes if the assertion succeeds, // otherwise it just returns the original io.Reader and the theoretical unlimited remaining amount of bytes. func tryLimitedReader(r io.Reader) (*io.LimitedReader, io.Reader, int64) { var remain int64 = 1<<63 - 1 // by default, copy until EOF
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 4.6K bytes - Viewed (0) -
src/crypto/md5/md5block_s390x.s
// Original source: // http://www.zorinaq.com/papers/md5-amd64.html // http://www.zorinaq.com/papers/md5-amd64.tar.bz2 // // MD5 adapted for s390x using Go's assembler for // s390x, based on md5block_amd64.s implementation by // the Go authors. // // Author: Marc Bevand <bevand_m (at) epita.fr> // Licence: I hereby disclaim the copyright on this code and place it // in the public domain. //go:build !purego #include "textflag.h"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 4.4K bytes - Viewed (0) -
src/go/types/typeparam.go
} // compute type set if necessary if ityp.tset == nil { // pos is used for tracing output; start with the type parameter position. pos := t.obj.pos // use the (original or possibly instantiated) type bound position if we have one if n := asNamed(bound); n != nil { pos = n.obj.pos } computeInterfaceTypeSet(t.check, pos, ityp) } return ityp }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 5.1K bytes - Viewed (0)