Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

affected/package: strings #59878

Closed
zsr228 opened this issue Apr 28, 2023 · 1 comment
Closed

affected/package: strings #59878

zsr228 opened this issue Apr 28, 2023 · 1 comment

Comments

@zsr228
Copy link

zsr228 commented Apr 28, 2023

go version: 1.18.3

my test code

package string

import (
	"fmt"
	"strings"
	"testing"
)

func TestEmptySp(t *testing.T) {
	fmt.Println(len(strings.Split("", ",")))  //result is 1
}

What did you expect to see?

In my case , I think the result is 0

@mvdan
Copy link
Member

mvdan commented Apr 28, 2023

The Go project doesn't use the issue tracker for questions. See https://golang.org/wiki/Questions.

@mvdan mvdan closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2023
@golang golang locked and limited conversation to collaborators Apr 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants