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
It would be nice if strings.Join could join a slice of any string-like type. So this could work:
type SpecialString string; mystrs := []SpecialString{"foo", "bar"} joined := strings.Join(mystrs, ",")
… with joined being of type SpecialString.
joined
SpecialString
Thank you for your consideration!
The text was updated successfully, but these errors were encountered:
Sorry, we cannot change signatures of any existing API (backwards compatibility). See proposal #71183 which might help in such cases.
Sorry, something went wrong.
(For posterity, in case anyone else is wondering: this would break applications that assign strings.Join to a variable.)
strings.Join
No branches or pull requests
Proposal Details
It would be nice if strings.Join could join a slice of any string-like type. So this could work:
… with
joined
being of typeSpecialString
.Thank you for your consideration!
The text was updated successfully, but these errors were encountered: