3 ms·
You don't actually have to instantiate the type for a receiver function (i.e., method). There's too much missing from your code for me to understand which direc
by markoman 4y ago
You don't actually have to instantiate the type for a receiver function (i.e., method). There's too much missing from your code for me to understand which direction you're going but you'll likely have to use a constraint for structs which is explained here: https://github.com/akutz/go-generics-the-hard-way/blob/main/04-getting-going/04-structural-constraints.md https://github.com/akutz/go-generics-the-hard-way/blob/main/...