stringslite

Imports

Imports #

"internal/bytealg"
"unsafe"

Functions

Clone function #

func Clone(s string) string

Cut function #

func Cut(s string, sep string) (before string, after string, found bool)

CutPrefix function #

func CutPrefix(s string, prefix string) (after string, found bool)

CutSuffix function #

func CutSuffix(s string, suffix string) (before string, found bool)

HasPrefix function #

func HasPrefix(s string, prefix string) bool

HasSuffix function #

func HasSuffix(s string, suffix string) bool

Index function #

func Index(s string, substr string) int

IndexByte function #

func IndexByte(s string, c byte) int

TrimPrefix function #

func TrimPrefix(s string, prefix string) string

TrimSuffix function #

func TrimSuffix(s string, suffix string) string

Generated with Arrow