package stringslite
import "internal/stringslite"
Package stringslite implements a subset of strings, only using packages that may be imported by "os".
Tests for these functions are in the strings package.
Index ¶
- func Clone(s string) string
- func Cut(s, sep string) (before, after string, found bool)
- func CutPrefix(s, prefix string) (after string, found bool)
- func CutSuffix(s, suffix string) (before string, found bool)
- func HasPrefix(s, prefix string) bool
- func HasSuffix(s, suffix string) bool
- func Index(s, substr string) int
- func IndexByte(s string, c byte) int
- func TrimPrefix(s, prefix string) string
- func TrimSuffix(s, suffix string) string
Functions ¶
func Clone ¶
func Cut ¶
func CutPrefix ¶
func CutSuffix ¶
func HasPrefix ¶
func HasSuffix ¶
func Index ¶
func IndexByte ¶
func TrimPrefix ¶
func TrimSuffix ¶
Source Files ¶
- Version
- v1.24.0
- Published
- Feb 10, 2025
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 11 seconds ago –
Tools for package owners.