We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Substring
package main import ( "fmt" "github.com/samber/lo" ) func main() { result1 := lo.Substring("你好,世界", 0, 2) fmt.Printf("%s\n", result1) }
https://go.dev/play/p/hvwkx8BQxPN
when processing string, it's expected to do something like this: string(lo.Subset([]rune(s), start, end))
string(lo.Subset([]rune(s), start, end))
The text was updated successfully, but these errors were encountered:
Cutting on codepoint boundaries could be counted as wrong as well if combining codepoints are not handled as well.
Sorry, something went wrong.
@samber new release please?
Sorry, saw the new tag.
The v1.38.0 release failed. I just made a new version: v1.38.1.
Successfully merging a pull request may close this issue.
https://go.dev/play/p/hvwkx8BQxPN
when processing string, it's expected to do something like this:
string(lo.Subset([]rune(s), start, end))
The text was updated successfully, but these errors were encountered: