Go's strings package in TypeScript
- Compare
- Contains
- ContainsAny
- Count
- Cut
- CutPrefix
- CutSuffix
- EqualFold
- Fields
- HasPrefix
- HasSuffix
- Index
- IndexAny
- Join
- LastIndex
- LastIndexAny
- Repeat
- Replace
- ReplaceAll
- Split
- SplitN
- ToLower
- ToUpper
- Trim
- TrimLeft
- TrimPrefix
- TrimRight
- TrimSpace
- TrimSuffix
Help us add more
Got a rainy Sunday afternoon and a taste for a porting puzzle?
- Get inspiration from Go strings documentation, Go strings source, Go strings examples source, GopherJS.
- Click "New file" in the appropriate folder on GitHub. This will fork the project to your account, directly add the file to it, and send a Pull Request to us.
We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.
Upstream Surface Inventory 29/52 shipped • 20 next 56%
Namespace-level inventory for Go 1.23: what we already ship, what we may still want,
and what we intentionally skip or keep.
strings package
56%
shipped
29/52 shipped
20 next
3 explicit non-goals
29 shipped • 20 next • 3 explicit non-goals.
Next
-
ContainsFuncGo strings helpers are core portability targets for Locutus. -
ContainsRuneGo strings helpers are core portability targets for Locutus. -
FieldsFuncGo strings helpers are core portability targets for Locutus. -
IndexByteGo strings helpers are core portability targets for Locutus. -
IndexFuncGo strings helpers are core portability targets for Locutus. -
IndexRuneGo strings helpers are core portability targets for Locutus. -
LastIndexByteGo strings helpers are core portability targets for Locutus. -
LastIndexFuncGo strings helpers are core portability targets for Locutus. -
MapGo strings helpers are core portability targets for Locutus. -
SplitAfterGo strings helpers are core portability targets for Locutus. -
SplitAfterNGo strings helpers are core portability targets for Locutus. -
TitleGo strings helpers are core portability targets for Locutus. -
ToLowerSpecialGo strings helpers are core portability targets for Locutus. -
ToTitleGo strings helpers are core portability targets for Locutus. -
ToTitleSpecialGo strings helpers are core portability targets for Locutus. -
ToUpperSpecialGo strings helpers are core portability targets for Locutus. -
ToValidUTF8Go strings helpers are core portability targets for Locutus. -
TrimFuncGo strings helpers are core portability targets for Locutus. -
TrimLeftFuncGo strings helpers are core portability targets for Locutus. -
TrimRightFuncGo strings helpers are core portability targets for Locutus.
Explicit non-goals (3)
-
CloneA string clone helper adds little value in JavaScript. -
NewReaderReader objects are not a stable plain-value target. -
NewReplacerReplacer objects are not a stable plain-value target.