- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of about 10,000 for a$ (0.06 sec)
-
test/fixedbugs/issue33219.dir/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 a type A interface { M(i interface{}) interface{} } var a1 A var a2 A func V(p A, k, v interface{}) A { defer func() { a1, a2 = a2, a1 }() return a1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 23 12:39:03 UTC 2019 - 325 bytes - Viewed (0) -
test/typeparam/chansimp.dir/a.go
} } // Ranger returns a Sender and a Receiver. The Receiver provides a // Next method to retrieve values. The Sender provides a Send method // to send values and a Close method to stop sending values. The Next // method indicates when the Sender has been closed, and the Send // method indicates when the Receiver has been freed. // // This is a convenient way to exit a goroutine sending values when
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:40:40 UTC 2021 - 5.5K bytes - Viewed (0) -
test/fixedbugs/issue34577.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 14 16:13:27 UTC 2019 - 353 bytes - Viewed (0) -
test/typeparam/issue47892b.dir/a.go
// 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{ p *int64 } type i struct{} func G() *T { return &T{nil} } func (j i) F(a, b *T) *T { n := *a.p + *b.p return &T{&n} } func (j i) G() *T { return &T{} } type I[Idx any] interface { G() Idx F(a, b Idx) Idx } func Gen() I[*T] { return i{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Aug 29 14:10:21 UTC 2021 - 436 bytes - Viewed (0) -
test/fixedbugs/bug511.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 S struct{} type A = S
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 25 15:24:25 UTC 2021 - 216 bytes - Viewed (0) -
test/fixedbugs/bug191.dir/a.go
// Copyright 2009 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 var A int func init() { A = 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 10 20:05:37 UTC 2013 - 219 bytes - Viewed (0) -
test/fixedbugs/issue49094.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 struct{} func (a *A) f() bool { return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 22 00:57:18 UTC 2021 - 226 bytes - Viewed (0) -
test/typeparam/setsimp.dir/a.go
} } return true } // A Set is a set of elements of some type. type Set[Elem comparable] struct { m map[Elem]struct{} } // Make makes a new set. func Make[Elem comparable]() Set[Elem] { return Set[Elem]{m: make(map[Elem]struct{})} } // Add adds an element to a set. func (s Set[Elem]) Add(v Elem) { s.m[v] = struct{}{} } // Delete removes an element from a set. If the element is not present
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 26 21:39:54 UTC 2021 - 2.7K bytes - Viewed (0) -
test/typeparam/listimp2.dir/a.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a import ( "fmt" ) // Element is an element of a linked list. type Element[T any] struct { // Next and previous pointers in the doubly-linked list of elements. // To simplify the implementation, internally a list l is implemented // as a ring, such that &l.root is both the next element of the last
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:40:40 UTC 2021 - 8K bytes - Viewed (0) -
test/fixedbugs/issue44370.dir/a.go
// source code is governed by a BSD-style license that can be found in // the LICENSE file. package a // A StoppableWaitGroup waits for a collection of goroutines to finish. type StoppableWaitGroup struct { // i is the internal counter which can store tolerate negative values // as opposed the golang's library WaitGroup. i *int64 } // NewStoppableWaitGroup returns a new StoppableWaitGroup. When the 'Stop' is
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 26 02:11:50 UTC 2021 - 682 bytes - Viewed (0)