stringslite
packagestandard library go1.25.2
Go to latest Published: Oct 7, 2025 License:BSD-3-Clause
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:2 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
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
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcTrimPrefix¶
funcTrimSuffix¶
Types¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.