Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of about 10,000 for a$ (0.07 sec)

  1. test/typeparam/issue48454.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
    
    import "sync"
    
    type Val[T any] struct {
    	mu  sync.RWMutex
    	val T
    }
    
    func (v *Val[T]) Has() {
    	v.mu.RLock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 24 18:21:14 UTC 2021
    - 280 bytes
    - Viewed (0)
  2. test/typeparam/factimp.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 Fact[T interface{ int | int64 | float64 }](n T) T {
    	if n == 1 {
    		return 1
    	}
    	return n * Fact(n-1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:40:40 UTC 2021
    - 279 bytes
    - Viewed (0)
  3. test/typeparam/select.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 F[T any](c, d chan T) T {
    	select {
    	case x := <- c:
    		return x
    	case x := <- d:
    		return x
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 03 22:57:02 UTC 2021
    - 274 bytes
    - Viewed (0)
  4. test/typeparam/issue49536.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 F() interface{} { return new(T[int]) }
    
    type T[P any] int
    
    func (x *T[P]) One() int { return x.Two() }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 06:23:18 UTC 2022
    - 317 bytes
    - Viewed (0)
  5. test/typeparam/issue48462.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 Unique[T comparable](set []T) []T {
    	nset := make([]T, 0, 8)
    
    loop:
    	for _, s := range set {
    		for _, e := range nset {
    			if s == e {
    				continue loop
    			}
    		}
    
    		nset = append(nset, s)
    	}
    
    	return nset
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 20 00:13:47 UTC 2021
    - 383 bytes
    - Viewed (0)
  6. test/fixedbugs/issue49143.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
    
    import "sync"
    
    type Loader[K comparable, R any] struct {
    	batch *LoaderBatch[K, R]
    }
    
    func (l *Loader[K, R]) Load() error {
    	l.batch.f()
    	return nil
    }
    
    type LoaderBatch[K comparable, R any] struct {
    	once    *sync.Once
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 27 05:33:58 UTC 2021
    - 451 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/buildCache/cacheable-bundle/kotlin/scripts/a.js

    console.log('a');...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 18 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue43639/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 issue43639
    
    // #cgo CFLAGS: -W -Wall -Werror
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 224 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue52611b/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 issue52611b
    
    import "C"
    
    func GetX1(bar *C.struct_Bar) int32 {
    	return int32(bar.X)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 254 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue30527/a.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 issue30527
    
    import "math"
    
    /*
    #include <inttypes.h>
    
    static void issue30527F(char **p, uint64_t mod, uint32_t unused) {}
    */
    import "C"
    
    func G(p **C.char) {
    	C.issue30527F(p, math.MaxUint64, 1)
    	C.issue30527F(p, 1<<64-1, Z)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 394 bytes
    - Viewed (0)
Back to top