Using a type switch is unacceptable because we need to match underlying types.
We should have a private tagAny that takes in a reflect.Value, and a public TagAny with the current interface. That way, the API can be normal, but the internal functions can directly pass the reflect.Value without it having to be re-created.
Using a type switch is unacceptable because we need to match underlying types.
We should have a private `tagAny` that takes in a reflect.Value, and a public `TagAny` with the current interface. That way, the API can be normal, but the internal functions can directly pass the reflect.Value without it having to be re-created.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Using a type switch is unacceptable because we need to match underlying types.
We should have a private
tagAnythat takes in a reflect.Value, and a publicTagAnywith the current interface. That way, the API can be normal, but the internal functions can directly pass the reflect.Value without it having to be re-created.