Quantcast
Channel: User Norbert - Stack Overflow
Browsing all 42 articles
Browse latest View live

Answer by Norbert for Converting A struct to map using generics

While golang has generics, you are trying to make a generic map, which as far as I know will not work: The inferred type has to be one of the types only:E.g. Input 3 different types, the inference for...

View Article


Comment by Norbert on Why doesn't Go have a function to calculate the...

Or use the ~ annotation to write this for all types of integer to have only one function

View Article

Browsing all 42 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>