package generic
import "github.com/IBM/fp-go/string/generic"
Index ¶
- func IsEmpty[T ~string](s T) bool
- func IsNonEmpty[T ~string](s T) bool
- func Size[T ~string](s T) int
- func ToBytes[T ~string](s T) []byte
- func ToRunes[T ~string](s T) []rune
Functions ¶
func IsEmpty ¶
IsEmpty tests if the string is empty
func IsNonEmpty ¶
IsNonEmpty tests if the string is not empty
func Size ¶
Size returns the size of the string
func ToBytes ¶
ToBytes converts the string to bytes
func ToRunes ¶
ToRunes converts the string to runes
Source Files ¶
- Version
- v1.0.151 (latest)
- Published
- Nov 23, 2024
- Platform
- linux/amd64
- Last checked
- 4 months ago –
Tools for package owners.