stringmanip

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MPL-2.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualRunes

func EqualRunes(a, b []rune) bool

func IndexLastRune

func IndexLastRune(s []rune, r rune) int

func IndexRune

func IndexRune(str string, r rune) int

func LastIndexRune

func LastIndexRune(str string, needle rune) int

func Substring

func Substring(s string, p, l int) string

Substring provides a safe way to extract a substring from a UTF-8 string. From this discussion:

https://groups.google.com/d/msg/golang-nuts/cGq1Irv_5Vs/0SKoj49BsWQJ

Types

This section is empty.

Jump to

Keyboard shortcuts

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