stringutils

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 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|~"
)

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