Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 5,773 for rain (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. cmd/cloud-controller-manager/main.go

    // For more details, please refer to k8s.io/kubernetes/cmd/cloud-controller-manager/main.go
    // The current file demonstrate how other cloud provider should leverage CCM and it uses fake parameters. Please modify for your own use.
    
    package main
    
    import (
    	"os"
    
    	"k8s.io/apimachinery/pkg/util/wait"
    	cloudprovider "k8s.io/cloud-provider"
    	"k8s.io/cloud-provider/app"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 19 13:01:01 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/cgo/internal/testsanitizers/testdata/asan_linkerx/main.go

    package main
    
    import "cmd/cgo/internal/testsanitizers/testdata/asan_linkerx/p"
    
    func pstring(s *string) {
    	println(*s)
    }
    
    func main() {
    	all := []*string{
    		&S1, &S2, &S3, &S4, &S5, &S6, &S7, &S8, &S9, &S10,
    		&p.S1, &p.S2, &p.S3, &p.S4, &p.S5, &p.S6, &p.S7, &p.S8, &p.S9, &p.S10,
    	}
    	for _, ps := range all {
    		pstring(ps)
    	}
    }
    
    var S1 string
    var S2 string
    var S3 string
    var S4 string
    var S5 string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 471 bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top