3 ms·
Here an example: https://go.dev/play/p/He0lBEYZJ03 https://go.dev/play/p/He0lBEYZJ03 Value is always a copy. Either a copy of a struct (in case of map[T]struct
by konart 3y ago
Here an example: https://go.dev/play/p/He0lBEYZJ03 https://go.dev/play/p/He0lBEYZJ03
Value is always a copy. Either a copy of a struct (in case of map[T]struct{}) or a copy of a pointer (in case of map[T]*struct{})