Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of about 10,000 for a$ (0.11 sec)

  1. test/typeparam/issue48716.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 Pair[L, R any] struct {
    	L L
    	R R
    }
    
    func Two[L, R any](l L, r R) Pair[L, R] {
    	return Pair[L, R]{L: l, R: r}
    }
    
    type Map[K, V any] interface {
    	Put(K, V)
    	Len() int
    	Iterate(func(Pair[K, V]) bool)
    }
    
    type HashMap[K comparable, V any] struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 12 20:09:58 UTC 2021
    - 861 bytes
    - Viewed (0)
  2. test/typeparam/issue49027.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 Conv(v interface{}) string {
    	return conv[string](v)
    }
    
    func conv[T any](v interface{}) T {
    	return v.(T)
    }
    
    func Conv2(v interface{}) (string, bool) {
    	return conv2[string](v)
    }
    
    func conv2[T any](v interface{}) (T, bool) {
    	x, ok := v.(T)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 19 22:47:48 UTC 2021
    - 871 bytes
    - Viewed (0)
  3. hack/testdata/prune/a.yaml

    apiVersion: v1
    kind: Pod
    metadata:
      name: a
      labels:
        prune-group: "true"
    spec:
      containers:
      - name: kubernetes-pause
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 07:02:51 UTC 2024
    - 164 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue52611a/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 issue52611a
    
    /*
    typedef struct Foo {
        int X;
    } Foo;
    */
    import "C"
    
    func GetX1(foo *C.struct_Foo) int32 {
    	return int32(foo.X)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 299 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue23555b/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 issue23555
    
    // #include <stdlib.h>
    import "C"
    
    func X() {
    	C.free(C.malloc(10))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 250 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testcarchive/testdata/libgo9/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 main
    
    import "runtime"
    
    import "C"
    
    func main() {}
    
    //export GoF
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 261 bytes
    - Viewed (0)
  7. test/retjmp.dir/a.s

    // 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.
    
    TEXT	·f(SB), 4, $8-0
    	CALL	·f1(SB)
    	RET	·f2(SB)
    	CALL	·unreachable(SB)
    
    TEXT	·leaf(SB), 4, $0-0
    	RET	·f3(SB)
    	JMP	·unreachable(SB)
    
    TEXT	·leaf2(SB), 4, $32-0 // nonzero frame size
    	RET	·f4(SB)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 22:42:08 UTC 2021
    - 385 bytes
    - Viewed (0)
  8. test/typeparam/issue50485.dir/a.go

    type ApplicativeFunctor1[H Header[HT], HT, A, R any] struct {
    	h  Option[H]
    	fn Option[Func1[A, R]]
    }
    
    func (r ApplicativeFunctor1[H, HT, A, R]) ApOption(a Option[A]) Option[R] {
    	return Ap(r.fn, a)
    }
    
    func (r ApplicativeFunctor1[H, HT, A, R]) Ap(a A) Option[R] {
    	return r.ApOption(Some(a))
    }
    
    func Applicative1[A, R any](fn Func1[A, R]) ApplicativeFunctor1[Nil, Nil, A, R] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  9. test/typeparam/issue49659.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 A[T any] struct {
    	a int
    }
    
    func (a A[T]) F() {
    	_ = &a.a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 19 00:05:59 UTC 2021
    - 236 bytes
    - Viewed (0)
  10. test/typeparam/issue51423.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 Comparator[T any] func(v1, v2 T) int
    
    func CompareInt[T ~int](a, b T) int {
    	if a < b {
    		return -1
    	}
    	if a == b {
    		return 0
    	}
    	return 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 11 00:42:08 UTC 2022
    - 318 bytes
    - Viewed (0)
Back to top