strhelper

package
v0.0.0-...-4845449 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractCommonPrefix

func ExtractCommonPrefix(a string, b string) (prefix string, ax string, bx string)

ExtractCommonPrefix from two strings. Returns prefix, first string without prefix and second string without prefix.

func FirstLower

func FirstLower(str string) string

func FirstUpper

func FirstUpper(str string) string

func FormatPathChange

func FormatPathChange(src string, dst string, quote bool) string

FormatPathChange - example result "branch/config/{row -> row1}".

func MatchWords

func MatchWords(value string, wordsStr string) bool

func NormalizeHost

func NormalizeHost(host string) string

func NormalizeName

func NormalizeName(str string) string

func StripHtmlComments

func StripHtmlComments(str string) string

StripHtmlComments replaces HTML comments with empty lines.

func Truncate

func Truncate(str string, max int, suffix 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