stringutils

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package stringutils holds utility methods for working with strings.

Index

Constants

View Source
const (
	// CharsetUnicode represents set of Unicode characters (contain multi byte runes).
	CharsetUnicode = "abcdefghijklmnopqrstuvwxyz" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
		"0123456789" + "🤡🤖🧟🏋🥇☟💄🐲🌓🌪🇵🇱⚥❄☠⌘©®💵⓵ " + "ęśćżźłóń"

	// CharsetASCII represents set containing only ASCII characters.
	CharsetASCII = " !#$%&'()*+,-.0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~"

	// CharsetPolish represents set of only polish letters.
	CharsetPolish = "ĄąĆćĘꣳŃńÓ󌜏źŻżabcdefghijklmnoprstuwvxyzABCDEFGHIJKLMNOPRSTUWVXYZ"

	// CharsetEnglish represents set of only english letters.
	CharsetEnglish = "abcdefghijklmnoprstuwvxyzABCDEFGHIJKLMNOPRSTUWVXYZ"

	// CharsetRussian represents set of only russian letters.
	CharsetRussian = "" /* 132-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func RunesFromCharset added in v0.8.0

func RunesFromCharset(length int, charset []rune) []rune

RunesFromCharset returns random slice of runes of given length. Argument length indices length of output slice. Argument charset indices input charset from which output slice will be composed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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