You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for raising this issue. Based on the documentation for strings.Split I believe this is working as intended
If s does not contain sep and sep is not empty, Split returns a slice of length 1 whose only element is s.
Based on this I am closing this issue. Please comment if you disagree but keep in mind that the operation of this function is covered by the Go 1 contract.
Uh oh!
There was an error while loading. Please reload this page.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
vi test.go
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
src="" slice=[] len(slice)=0
What did you see instead?
src="" slice=[] len(slice)=1
The text was updated successfully, but these errors were encountered: