stringsutil

package
v0.0.0-...-2c87074 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Unlicense Imports: 4 Imported by: 1

Documentation

Overview

Package stringsutil implements some strings utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexAfter

func IndexAfter(s, sep string) int

IndexAfter returns the index directly after the first instance of sep in s, or -1 if sep is not present in s.

func Reverse

func Reverse(s string) (rev string)

Reverse returns a reversed version of s.

func SplitCamelCase

func SplitCamelCase(s string) (words []string)

SplitCamelCase splits the string s at each run of upper case runes and returns and array of slices of s.

func WordWrap

func WordWrap(s string, width int) string

WordWrap wraps paragraphs of text to width.

Types

This section is empty.

Jump to

Keyboard shortcuts

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