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
I don't know if this is the expected result, but I hope it isn't:
a := strings.TrimRight("1234t.html", ".html") fmt.Println(a) // Expected 1234t, get 1234
Playground
Edit (Information about my machine according to the guidelines) Version: 1.5.1 OS: ArchLinux x86_64 The other things are already answered 😄
The text was updated successfully, but these errors were encountered:
Please re-read the docs for TrimRight.
You want TrimSuffix: http://play.golang.org/p/gVdhgTSMoL
Sorry, something went wrong.
Thanks.. my bad u.U
No branches or pull requests
I don't know if this is the expected result, but I hope it isn't:
Playground
Edit (Information about my machine according to the guidelines)
Version: 1.5.1
OS: ArchLinux x86_64
The other things are already answered 😄
The text was updated successfully, but these errors were encountered: