package generic

import "github.com/IBM/fp-go/string/generic"

Index

Functions

func IsEmpty

func IsEmpty[T ~string](s T) bool

IsEmpty tests if the string is empty

func IsNonEmpty

func IsNonEmpty[T ~string](s T) bool

IsNonEmpty tests if the string is not empty

func Size

func Size[T ~string](s T) int

Size returns the size of the string

func ToBytes

func ToBytes[T ~string](s T) []byte

ToBytes converts the string to bytes

func ToRunes

func ToRunes[T ~string](s T) []rune

ToRunes converts the string to runes

Source Files

string.go

Version
v1.0.151 (latest)
Published
Nov 23, 2024
Platform
linux/amd64
Last checked
4 months ago

Tools for package owners.