4 ms·
The alternative is to do something like: type Int int func (i Int) Hash() uintptr { /* do the hash */ } But I didn't want to deal with it in this code. I agr
by mdlayher 6y ago
The alternative is to do something like:
type Int int
func (i Int) Hash() uintptr { /* do the hash */ }
But I didn't want to deal with it in this code. I agree that it isn't optimal and would be curious to see if the situation can be improved.