6 ms·
(*subtree)[keys[len(keys)-1]] = value This is the first time I see this kind of syntax in Go, what does (*subtree) do?
by melvinmt 14y ago
(*subtree)[keys[len(keys)-1]] = value
This is the first time I see this kind of syntax in Go, what does (*subtree) do?
- deleted 14y ago[deleted]
- chc 14y agoI believe it means: Dereference the pointer `subtree` and assign `value` to the key `keys[len(keys)-1]` in the map yielded by the dereference.