When comparing strings in a case-insensitive way, strings.EqualFold() is (almost?) always faster than comparing the results of strings.ToLower(). In addition, strings.EqualFold() never causes an allocation. This patch replaces case-insensitive string comparisons that use strings.ToLower() with a strings.EqualFold() call. |
||
---|---|---|
.. | ||
internal | ||
client.go | ||
client_test.go | ||
config.go | ||
config_test.go | ||
context.go | ||
data.go | ||
data_internal_test.go | ||
data_test.go | ||
errors.go | ||
meta_test.go | ||
query_authorizer.go | ||
write_authorizer.go |