- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for NewAny (0.17 sec)
-
test/typeparam/issue50109.go
c := &anyCache[T]{ items: m, } return c } // NewAny[T any](...) returns a new AnyCache[T]. func NewAny[T any]() *AnyCache[T] { items := make(map[string]Item[T]) return &AnyCache[T]{newAnyCache(items)} } // NewAnyCacher[T any](...) returns an AnyCacher[T] interface. func NewAnyCacher[T any]() AnyCacher[T] { return NewAny[T]() } type MyStruct struct { Name string } func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 2.2K bytes - Viewed (0)