- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 5,774 for rain (0.05 sec)
-
src/cmd/link/testdata/pe-binutils/main.go
// where a.rc is a text file with the following content: // // resname RCDATA { // "Hello Gophers!\0", // "This is a test.\0", // } package main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 26 18:15:09 UTC 2021 - 515 bytes - Viewed (0) -
test/typeparam/factimp.dir/main.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "./a" "fmt" ) func main() { const want = 120 if got := a.Fact(5); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } if got := a.Fact[int64](5); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 516 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue22295.pkg/main.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ignore package main import ( "log" "plugin" ) func main() { p, err := plugin.Open("issue.22295.so") if err != nil { log.Fatal(err) } f, err := p.Lookup("F") if err != nil { log.Fatal(err) } const want = 2503
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 486 bytes - Viewed (0) -
test/typeparam/select.dir/main.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "sort" "./a" ) func main() { c := make(chan int, 1) d := make(chan int, 1) c <- 5 d <- 6 var r [2]int r[0] = a.F(c, d) r[1] = a.F(c, d) sort.Ints(r[:]) if r != [2]int{5, 6} { panic("incorrect results")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 03 22:57:02 UTC 2021 - 408 bytes - Viewed (0) -
test/fixedbugs/issue21120.dir/main.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "fmt" "os" "./a" "./b" ) func main() { // Make sure the reflect information for a.S is in the executable. _ = a.V() b1 := b.F1() b2 := b.F2() if b1 != b2 { fmt.Printf("%q (from b.F1()) != %q (from b.F2())\n", b1, b2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 24 18:05:00 UTC 2017 - 432 bytes - Viewed (0) -
test/typeparam/mapimp.dir/main.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "./a" "fmt" "reflect" "strconv" ) func main() { got := a.Mapper([]int{1, 2, 3}, strconv.Itoa) want := []string{"1", "2", "3"} if !reflect.DeepEqual(got, want) { panic(fmt.Sprintf("got %s, want %s", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 661 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue22175/main.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "fmt" "os" "plugin" ) func main() { p2, err := plugin.Open("issue22175_plugin1.so") if err != nil { panic(err) } f, err := p2.Lookup("F") if err != nil { panic(err) } got := f.(func() int)() const want = 971
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 510 bytes - Viewed (0) -
test/typeparam/issue50481b.dir/main.go
// license that can be found in the LICENSE file. // Test that type substitution and export/import works correctly even for a method of // a generic type that has multiple blank type params. package main import ( "./b" "fmt" ) func main() { foo := &b.Foo[string, int]{ ValueA: "i am a string", ValueB: 123, } if got, want := fmt.Sprintln(foo), "i am a string 123\n"; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 559 bytes - Viewed (0) -
test/fixedbugs/issue30862.dir/main.go
// license that can be found in the LICENSE file. package main import ( "fmt" "os" "issue30862.dir/b" ) // Test case for issue 30862. // Be aware that unless GOEXPERIMENT=fieldtrack is set when building // the compiler, this test will fail if executed with a regular GC // compiler. func main() { bad := b.Test() if len(bad) > 0 { for _, s := range bad {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 26 18:43:12 UTC 2021 - 549 bytes - Viewed (0) -
test/dwarf/dwarf.dir/main.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main func main() { F1() F2() F3() F4() F5() F6() F7() F8() F9() F10() F11() F12() F13() F14() F15() F16() F17() F18() F19() F20()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 11 21:00:48 UTC 2013 - 477 bytes - Viewed (0)