strings

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func At

func At(s string, index int) string

func CamelCase

func CamelCase(s string) string

func Capitalize

func Capitalize(sentence string) string

func CodePoint

func CodePoint(input string) []int

func CodePointAt

func CodePointAt(s string, index int) int

func Concat

func Concat(s ...string) string

func Count

func Count(s string, substr ...string) int

func EndsWith

func EndsWith(s string, substr string) bool

func Escape

func Escape(s string) string

func FIndex

func FIndex(s string, substr string) int

func FromCodePoint

func FromCodePoint(codePoint ...int) string

func FromCodePointAt

func FromCodePointAt(codePoint int) string

func Includes

func Includes(s string, substr string) bool

func Index

func Index(s, substr string) (int, int)

func IsDigit

func IsDigit[T byte | rune](char T) bool

func IsLetter

func IsLetter[T byte | rune](char T) bool

func IsLower

func IsLower[T byte | rune](char T) bool

func IsUpper

func IsUpper[T byte | rune](char T) bool

func Join

func Join(s []string, separator string) string

func KebabCase

func KebabCase(s string) string

func LIndex

func LIndex(s string, substr string) int

func LTrim

func LTrim(s string) string

func Lines

func Lines(s string) int

func Lower

func Lower[T byte | rune](char T) T

func LowerFirst

func LowerFirst(s string) string

func Lowers

func Lowers(s string) string

func PadEnd

func PadEnd(s string, addAmount int, padChar byte) string

func PadStart

func PadStart(s string, addAmount int, padChar byte) string

func RTrim

func RTrim(s string) string

func RandomNum

func RandomNum(n int) string

func RandomStr

func RandomStr(n int) string

func Repeat

func Repeat(s string, count int) string

func Replace

func Replace(s string, old string, new string) string

func Reverse

func Reverse(s string) string

func Slice

func Slice(s string, index ...int) string

func SnakeCase

func SnakeCase(s string) string

func Splice

func Splice(s string, start, replaceCount int, items ...string) string

func Split

func Split(s string, separator string) []string

func StartsWith

func StartsWith(s string, substr string) bool

func SubStr

func SubStr(s string, start int, length ...int) string

func Trim

func Trim(s string) string

func TrimBlank

func TrimBlank(s string) string

func TrimPrefix

func TrimPrefix(s, prefix string) string

func TrimSuffix

func TrimSuffix(s, suffix string) string

func Truncate

func Truncate(s string, length int, omission ...string) string

func Unescape

func Unescape(s string) string

func Upper

func Upper[T byte | rune](char T) T

func UpperFirst

func UpperFirst(s string) string

func Uppers

func Uppers(s string) string

func Words

func Words(s string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL