- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for NewAnyCacher (0.1 sec)
-
test/typeparam/issue50109.go
} // 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() { // Create a generic cache.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 2.2K bytes - Viewed (0)