https://groups.google.com/g/golang-nuts/c/zarrFbwxejc/m/JLl2WgUqBAAJ

On Sunday, July 16, 2023 at 11:02:03 AM UTC-5 Leonard Mittmann wrote:

> Hi everyone, I am wondering if there is efficient way to do the following 
> type conversion (without looping over the map):
>
> var m = map[uint]uint{ /*...*/ }
> type uintXXX uint
> // this does not work
> var m2 map[uintXXX]uintXXX = (map[uintXXX]uintXXX)(m)
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/ad3e288a-e5ba-44a6-883d-0e2506d4ab1cn%40googlegroups.com.

Reply via email to