- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 947 for asSlice (0.21 sec)
-
src/go/doc/testdata/generics.2.golden
// Func has an instantiated constraint. func Func[T Constraint[string, Type[int]]]() // Single is not a factory function. func Single[T any]() *T // Slice is not a factory function. func Slice[T any]() []T TYPES // AFuncType demonstrates filtering of parameters and type ... type AFuncType[T ~struct{ f int }] func(_ struct { // contains filtered or unexported fields })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 10 18:06:32 UTC 2021 - 1.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/language/coverage.go
// - CLDR coverage levels. // - Set of common tags defined in this package. type allSubtags struct{} // Regions returns the list of supported regions. As all regions are in a // consecutive range, it simply returns a slice of numbers in increasing order. // The "undefined" region is not returned. func (s allSubtags) Regions() []Region { reg := make([]Region, language.NumRegions) for i := range reg { reg[i] = Region{language.Region(i + 1)}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 4.8K bytes - Viewed (0) -
src/internal/types/testdata/check/expr2.go
// issue #28164 // testcase from issue _ = interface{}(nil) == [ /* ERROR "slice can only be compared to nil" */ ]int(nil) // related cases var e interface{} var s []int var x int _ = e == s // ERROR "slice can only be compared to nil" _ = s /* ERROR "slice can only be compared to nil" */ == e _ = e /* ERROR "operator < not defined on interface" */ < x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 5K bytes - Viewed (0) -
src/runtime/testdata/testprog/checkptr.go
} func CheckPtrSmall() { sink2 = unsafe.Pointer(uintptr(1)) } func CheckPtrSliceOK() { p := new([4]int64) sink2 = unsafe.Slice(&p[1], 3) } func CheckPtrSliceFail() { p := new(int64) sink2 = p sink2 = unsafe.Slice(p, 100) } func CheckPtrStringOK() { p := new([4]byte) sink2 = unsafe.String(&p[1], 3) } func CheckPtrStringFail() { p := new(byte)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 31 17:15:15 UTC 2022 - 2.4K bytes - Viewed (0) -
src/cmd/vet/testdata/print/print.go
var x float64 var p *int var imap map[int]int var fslice []float64 var c complex64 // Some good format/argtypes fmt.Printf("") fmt.Printf("%b %b %b", 3, i, x) fmt.Printf("%c %c %c %c", 3, i, 'x', r) fmt.Printf("%d %d %d", 3, i, imap) fmt.Printf("%e %e %e %e", 3e9, x, fslice, c) fmt.Printf("%E %E %E %E", 3e9, x, fslice, c) fmt.Printf("%f %f %f %f", 3e9, x, fslice, c) fmt.Printf("%F %F %F %F", 3e9, x, fslice, c)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 27.5K bytes - Viewed (0) -
cmd/os-readdir_test.go
sort.Strings(entries) // Add entries slice for this test directory. testResults = append(testResults, result{dir, entries}) return testResults } // checkResult - checks whether entries are got are same as expected entries. func checkResult(expected []string, got []string) bool { // If length of expected and got slice are different, the test actually failed. if len(expected) != len(got) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 7.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/syscall.go
// holds a value of type syscall.ErrorString. package plan9 // import "golang.org/x/sys/plan9" import ( "bytes" "strings" "unsafe" ) // ByteSliceFromString returns a NUL-terminated slice of bytes // containing the text of s. If s contains a NUL byte at any // location, it returns (nil, EINVAL). func ByteSliceFromString(s string) ([]byte, error) { if strings.IndexByte(s, 0) != -1 { return nil, EINVAL }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 3.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/config/config.go
return r.pgstack[pgkey{program, stack}] } func (r *Config) Rate(program, name string) float64 { return r.rate[pgkey{program, name}] } func set(slice []string) map[string]bool { s := make(map[string]bool, len(slice)) for _, v := range slice { s[v] = true } return s } // Expand takes a counter defined with buckets and expands it into distinct // strings for each bucket
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:57:25 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go
//sys setfsgid(gid int) (prev int, err error) //sys setfsuid(uid int) (prev int, err error) //sys Shutdown(fd int, how int) (err error) //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) //sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 //sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 6.9K bytes - Viewed (0) -
src/syscall/syscall_linux_arm.go
//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32 //sys Setfsuid(uid int) (err error) = SYS_SETFSUID32 //sys Shutdown(fd int, how int) (err error) //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) //sys Ustat(dev int, ubuf *Ustat_t) (err error) //sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 22:23:07 UTC 2023 - 7.1K bytes - Viewed (0)