Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 6,954 for umajin (0.21 sec)

  1. test/typeparam/valimp.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() {
    	var v1 a.Value[int]
    
    	a.Set(&v1, 1)
    	if got, want := a.Get(&v1), 1; got != want {
    		panic(fmt.Sprintf("Get() == %d, want %d", got, want))
    	}
    	v1.Set(2)
    	if got, want := v1.Get(), 2; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  2. test/fixedbugs/bug506.dir/main.go

    // Copyright 2018 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"
    
    	"./a"
    )
    
    var v = a.S{}
    
    func main() {
    	want := "{{ 0}}"
    	if got := fmt.Sprint(v.F); got != want {
    		panic(got)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 18 04:57:41 UTC 2018
    - 308 bytes
    - Viewed (0)
  3. test/fixedbugs/issue29919.dir/main.go

    // Copyright 2019 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"
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jan 27 04:02:46 UTC 2019
    - 206 bytes
    - Viewed (0)
  4. test/typeparam/mdempsky/12.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"
    )
    
    func main() {
    	_ = a.X
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 07 11:12:24 UTC 2021
    - 218 bytes
    - Viewed (0)
  5. test/typeparam/issue48337b.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"
    
    func main() {
    	a.NewMetaContainer()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 226 bytes
    - Viewed (0)
  6. test/typeparam/issue49497.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"
    
    func main() {
    	a.F[string]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 219 bytes
    - Viewed (0)
  7. test/typeparam/issue51367.dir/main.go

    // Copyright 2022 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"
    )
    
    func main() {
    	a.DoSomething[byte]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 232 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testshared/testdata/iface/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 "testshared/iface_a"
    import "testshared/iface_b"
    
    func main() {
    	if iface_a.F() != iface_b.F() {
    		panic("empty interfaces not equal")
    	}
    	if iface_a.G() != iface_b.G() {
    		panic("non-empty interfaces not equal")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 399 bytes
    - Viewed (0)
  9. test/fixedbugs/issue47068.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"
    	"./b"
    )
    
    func main() {
    	a.A()
    	b.B()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 230 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcshared/testdata/go2c2go/m1/main.go

    // Copyright 2018 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
    
    // extern int CFunc(void);
    import "C"
    
    import (
    	"fmt"
    	"os"
    )
    
    func main() {
    	got := C.CFunc()
    	const want = (1 << 8) | 2
    	if got != want {
    		fmt.Printf("got %#x, want %#x\n", got, want)
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 380 bytes
    - Viewed (0)
Back to top