enhancement of data type assertion compatibility #44657
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
If is it possible to get assertion more simple and compatible?
because larger data type can cover any type smaller than it.
for example, int64 can cover all integer type and uint64 can cover all unsigned integer type and float64 can cover float32,
so the below code is reasonable
since generic type is taken into account, the above enchancement is worth considering.
thanks for any improvement of golang, it is awesome.
The text was updated successfully, but these errors were encountered: