Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of about 10,000 for a$ (0.07 sec)

  1. test/typeparam/issue52117.dir/a.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 a
    
    func Compare[T int | uint](a, b T) int {
    	return 0
    }
    
    type Slice[T int | uint] struct{}
    
    func (l Slice[T]) Comparator() func(v1, v2 T) int {
    	return Compare[T]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 28 20:14:34 UTC 2022
    - 333 bytes
    - Viewed (0)
  2. test/typeparam/issue54302.dir/a.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 a
    
    func A() {
    	B[int](new(G[int]))
    }
    
    func B[T any](iface interface{ M(T) }) {
    	x, ok := iface.(*G[T])
    	if !ok || iface != x {
    		panic("FAIL")
    	}
    }
    
    type G[T any] struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 06 15:20:00 UTC 2022
    - 362 bytes
    - Viewed (0)
  3. test/fixedbugs/issue47068.dir/a.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 a
    
    func A() {
    	var m map[int]int = map[int]int{
    		0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0,
    		10: 0, 11: 0, 12: 0, 13: 0, 14: 0, 15: 0, 16: 0, 17: 0, 18: 0, 19: 0,
    		20: 0, 21: 0, 22: 0, 23: 0, 24: 0, 25: 0, 26: 0, 27: 0, 28: 0, 29: 0}
    	if len(m) != 30 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 09 15:34:31 UTC 2023
    - 479 bytes
    - Viewed (0)
  4. test/fixedbugs/issue62498.dir/a.go

    // Copyright 2023 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 a
    
    func One(L any) {
    	func() {
    		defer F(L)
    	}()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 11 16:02:11 UTC 2023
    - 235 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue26430/a.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 a
    
    // typedef struct S ST;
    // static ST* F() { return 0; }
    import "C"
    
    func F1() {
    	C.F()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 260 bytes
    - Viewed (0)
  6. test/fixedbugs/issue47131.dir/a.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 a
    
    type MyInt int
    
    type MyIntAlias = MyInt
    
    func (mia *MyIntAlias) Get() int {
    	return int(*mia)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 13 20:47:06 UTC 2021
    - 267 bytes
    - Viewed (0)
  7. test/fixedbugs/issue52128.dir/a.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 a
    
    type I interface{}
    
    type F func()
    
    type s struct {
    	f F
    }
    
    func NewWithF(f F) *s {
    	return &s{f: f}
    }
    
    func NewWithFuncI(func() I) *s {
    	return &s{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 19:20:41 UTC 2022
    - 322 bytes
    - Viewed (0)
  8. src/cmd/cover/testdata/pkgcfg/a/a.go

    package a
    
    type Atyp int
    
    func (ap *Atyp) Set(q int) {
    	*ap = Atyp(q)
    }
    
    func (ap Atyp) Get() int {
    	inter := func(q Atyp) int {
    		return int(q)
    	}
    	return inter(ap)
    }
    
    var afunc = func(x int) int {
    	return x + 1
    }
    var Avar = afunc(42)
    
    func A(x int) int {
    	if x == 0 {
    		return 22
    	} else if x == 1 {
    		return 33
    	}
    	return 44
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:48:40 UTC 2022
    - 330 bytes
    - Viewed (0)
  9. test/typeparam/issue50841.dir/a.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 a
    
    func Marshal[foobar any]() {
    	_ = NewEncoder[foobar]()
    }
    
    func NewEncoder[foobar any]() *Encoder[foobar] {
    	return nil
    }
    
    type Encoder[foobar any] struct {
    }
    
    func (e *Encoder[foobar]) EncodeToken(t Token[foobar]) {
    
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 27 05:30:27 UTC 2022
    - 418 bytes
    - Viewed (0)
  10. test/fixedbugs/issue50788.dir/a.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 a
    
    type T[P any] struct {
    	_ P
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 24 17:48:24 UTC 2022
    - 201 bytes
    - Viewed (0)
Back to top