strkit

package
v0.0.0-...-7b6962b Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterByte

func AfterByte(str string, c byte) (string, bool)

func BeforeByte

func BeforeByte(str string, c byte) (string, bool)

func CamelCase

func CamelCase(str string) string

func ContainsByte

func ContainsByte(s string, c byte) bool

func Cut

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

func IndexAnyExcept

func IndexAnyExcept(s string, exceptChars string) int

func IndexNewline

func IndexNewline(str string) (pos int, newlineLen int)

func IndexNewlineFrom

func IndexNewlineFrom(str string, from int) (pos int, newlineLen int)

func JoinFunc

func JoinFunc[T any](elems []T, sep string, fn func(T) string) string

func LastAfterByte

func LastAfterByte(str string, c byte) (string, bool)

func LastBeforeByte

func LastBeforeByte(str string, c byte) (string, bool)

func LastCut

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

func LowerFirst

func LowerFirst(str string) string

func MapByte

func MapByte(mapping func(b byte) byte, s string) string

func PadLeft

func PadLeft(str string, size int, pad byte) string

func PadRight

func PadRight(str string, size int, pad byte) string

func UpperCamelCase

func UpperCamelCase(str string) string

func UpperFirst

func UpperFirst(str 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