- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MySuperStruct (0.11 sec)
-
test/typeparam/issue50109.go
c := NewAnyCacher[any]() myStruct := &MyStruct{"MySuperStruct"} c.Set("MySuperStruct", myStruct) myRawCachedStruct, found := c.Get("MySuperStruct") if found { // Casting the retrieved object back to its original type myCachedStruct := myRawCachedStruct.(*MyStruct) fmt.Printf("%s", myCachedStruct.Name) } else { fmt.Printf("Error: MySuperStruct not found in cache") } // Output:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 2.2K bytes - Viewed (0) -
test/typeparam/issue50109.out
MySuperStruct...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 06:35:06 UTC 2021 - 13 bytes - Viewed (0)