3 ms·
It's because people started putting "always use strings.Compare" in their style guides.
by icholy 4y ago
It's because people started putting "always use strings.Compare" in their style guides.
- tapirl 4y agoEven if strings.Compare is optimized, it is not always better than general comparison operators. Both strings.Compare and comparison operators have their respective best use scenarios.