- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for sameSlice (0.22 sec)
-
src/go/types/methodset_test.go
sel := ms.At(i) if got, want := sel.Obj().Name(), m.name; got != want { t.Errorf("%s [method %d]: got name = %q at, want %q", src, i, got, want) } if got, want := sel.Index(), m.index; !sameSlice(got, want) { t.Errorf("%s [method %d]: got index = %v, want %v", src, i, got, want) } if got, want := sel.Indirect(), m.indirect; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 08 15:27:57 UTC 2023 - 6.7K bytes - Viewed (0) -
src/os/dir_windows.go
nextEntryOffset = info.NextEntryOffset nameslice = unsafe.Slice(&info.FileName[0], info.FileNameLength/2) } d.bufp += int(nextEntryOffset) islast = nextEntryOffset == 0 if islast { d.bufp = 0 } if (len(nameslice) == 1 && nameslice[0] == '.') || (len(nameslice) == 2 && nameslice[0] == '.' && nameslice[1] == '.') { // Ignore "." and ".." and avoid allocating a string for them. continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 20:52:06 UTC 2024 - 7.7K bytes - Viewed (0) -
src/cmd/internal/src/xpos.go
return p.index == q.index } // SameFileAndLine reports whether p and q are positions on the same line in the same file. func (p XPos) SameFileAndLine(q XPos) bool { return p.index == q.index && p.lico.SameLine(q.lico) } // After reports whether the position p comes after q in the source. // For positions with different bases, ordering is by base index. func (p XPos) After(q XPos) bool { n, m := p.index, q.index
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 4.9K bytes - Viewed (0)