↧
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 ArticleComment 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