6 ms·
This is another way that Go's approach works well. In practice, you will see library code check for common image formats, and then dispatch to optimized code.
by rwj 7y ago
This is another way that Go's approach works well. In practice, you will see library code check for common image formats, and then dispatch to optimized code. The advantage here being that optimization is a library concern. Callers still maintain flexibility.