stringkit

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Newline = "\n"

Variables

This section is empty.

Functions

func CountInString

func CountInString(s string) int

func HasAnyPrefix added in v1.1.0

func HasAnyPrefix(s string, prefixes ...string) (bool, string)

func HasAnySuffix added in v1.1.0

func HasAnySuffix(s string, suffixes ...string) (bool, string)

func JoinURL

func JoinURL(parts ...string) string

func SplitPath

func SplitPath(s string, sep string) []string

func ToRune

func ToRune(s string) []rune

func TrimAll

func TrimAll(s string, sides ...string) string

func TrimAllPrefixes added in v1.1.0

func TrimAllPrefixes(s string, prefixes ...string) string

func TrimAllSuffixes added in v1.1.0

func TrimAllSuffixes(s string, suffixes ...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