-
Couldn't load subscription status.
- Fork 18.4k
Open
Labels
LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolProposal
Milestone
Description
Proposal Details
as there many usage of Replace(old, new, 1).
I Proposal to add ReplaceOnce to strings and bytes package. Like wise ReplaceAll.
func ReplaceOnce(s, old, new string) string {
return Replace(s, old, new, 1)
}
func ReplaceOnce(s, old, new []byte) []byte {
return Replace(s, old, new, 1)
}
zigo101tmthrgd, cespare, seankhliao, jfesler, meling and 3 more
Metadata
Metadata
Assignees
Labels
LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolProposal