Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. 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)
  4. test/fixedbugs/issue20014.dir/a/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 T struct {
    	X int `go:"track"`
    	Y int `go:"track"`
    	Z int // untracked
    }
    
    func (t *T) GetX() int {
    	return t.X
    }
    func (t *T) GetY() int {
    	return t.Y
    }
    func (t *T) GetZ() int {
    	return t.Z
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 21 20:24:34 UTC 2021
    - 367 bytes
    - Viewed (0)
  5. test/fixedbugs/issue9537.dir/a.go

    // Copyright 2015 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 X struct {
    	T [32]byte
    }
    
    func (x *X) Get() []byte {
    	t := x.T
    	return t[:]
    }
    
    func (x *X) RetPtr(i int) *int {
    	i++
    	return &i
    }
    
    func (x *X) RetRPtr(i int) (r1 int, r2 *int) {
    	r1 = i + 1
    	r2 = &r1
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 22 03:25:12 UTC 2015
    - 386 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. test/fixedbugs/issue19548.dir/a.go

    // Copyright 2016 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 Mode uint
    
    func (m Mode) String() string { return "mode string" }
    func (m *Mode) Addr() *Mode   { return m }
    
    type Stringer interface {
    	String() string
    }
    
    var global Stringer
    var m Mode
    
    func init() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 15 00:27:13 UTC 2017
    - 516 bytes
    - Viewed (0)
  8. test/fixedbugs/issue37837.dir/a.go

    // Copyright 2020 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(i interface{}) int { // ERROR "can inline F" "i does not escape"
    	switch i.(type) {
    	case nil:
    		return 0
    	case int:
    		return 1
    	case float64:
    		return 2
    	default:
    		return 3
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 06 20:49:11 UTC 2020
    - 736 bytes
    - Viewed (0)
  9. 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)
  10. build-logic/documentation/src/test/resources/org/gradle/test/A.java

    package org.gradle.test;
    
    class A {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 38 bytes
    - Viewed (0)
Back to top