stringutils

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 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.
	CharsetUnicode = "abcdefghijklmnopqrstuvwxyz" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
		"0123456789" + "🤡🤖🧟🏋🥇☟💄🐲🌓🌪🇵🇱⚥❄☠⌘©®💵⓵ " + "ęśćżźłóń"

	// CharsetASCII represents set of only ASCII characters.
	CharsetASCII = "abcdefghijklmnopqrstuvwxyz" +
		"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
)

Variables

This section is empty.

Functions

func StringWithCharset

func StringWithCharset(length int, charset string) string

StringWithCharset returns random string of given length. Argument length indices length of output string. Argument charset indices input charset from which output string 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