It turns out that strings.Split(s, ",") will return [""] if the input s is "". This is a footgun for casual uses. I see I have a few cases in the code where the input may be empty and it would be bad if the output is not an empty slice, so I need to fix these. Maybe it's time for go-utils/strings for a version that does not do this.
It turns out that
strings.Split(s, ",")
will return[""]
if the input s is""
. This is a footgun for casual uses. I see I have a few cases in the code where the input may be empty and it would be bad if the output is not an empty slice, so I need to fix these. Maybe it's time forgo-utils/strings
for a version that does not do this.