francoismichel / ssh3

SSH3: faster and rich secure shell using HTTP/3, checkout our article here: https://arxiv.org/abs/2312.08396 and our Internet-Draft: https://datatracker.ietf.org/doc/draft-michel-ssh3/
https://arxiv.org/abs/2312.08396
Apache License 2.0
3.27k stars 82 forks source link

make generic SyncMap with with actually any type #116

Closed francoismichel closed 8 months ago

francoismichel commented 8 months ago

The SyncMap genreic type does not work with non-nilable types, as the nil value returned by sync.Map cannot be converted to the V generic type. Replace nil by the zero value if that's the case.