Documentation ¶
Index ¶
- func Append[B ~byte, S1 ~string, S2 String[B]](s S1, more ...S2) S1
- func Convert[R ~string, B ~byte, S String[B]](s S) R
- func HasPrefix[B1, B2 ~byte, S1 String[B1], S2 String[B2]](s S1, prefix S2) bool
- func HasSuffix[B1, B2 ~byte, S1 String[B1], S2 String[B2]](s S1, suffix S2) bool
- func Reverse[B ~byte, S String[B]](s S) S
- func SliceEnd[B ~byte, S String[B]](s S, i int) S
- func SliceStart[B ~byte, S String[B]](s S, i int) S
- func SliceStartEnd[B ~byte, S String[B]](s S, i, j int) S
- func ToBytes[R, B ~byte, S String[B]](s S) []R
- func TrimPrefix[B1, B2 ~byte, S1 String[B1], S2 String[B2]](s S1, prefix S2) S1
- func TrimSuffix[B1, B2 ~byte, S1 String[B1], S2 String[B2]](s S1, suffix S2) S1
- type ByteString
- type String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SliceStart ¶
SliceStart returns s[i:], cap = len
func SliceStartEnd ¶
SliceStartEnd returns s[i:j], cap = len
func TrimPrefix ¶
func TrimSuffix ¶
Types ¶
type ByteString ¶
Click to show internal directories.
Click to hide internal directories.