Skip to content

v0.11.0: feat: add ReplaceFirst string utility function

Choose a tag to compare

@lesichkovm lesichkovm released this 28 Oct 22:04
· 31 commits to main since this release
- Created new ReplaceFirst function that replaces first occurrence of a search string with a replacement string
- Added comprehensive test cases covering empty search string, successful replacement, and no-match scenarios
- Removed commented out String.Replace related methods from str.go for cleaner codebase