stringutil

package
v0.13.1 Latest Latest
Warning

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

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

Documentation

Overview

Package stringutil contains general string utilities used throughout this project. This package should not import any other packages in this repository.

Index

Constants

This section is empty.

Variables

View Source
var AllowedCharacters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")

AllowedCharacters is the list of characters that can be used in the 'Random' function.

Functions

func Random

func Random(length int) string

Random returns a string of a random length using only characters in the package-level variable 'AllowedCharacters'.

func Slugify

func Slugify(s string) string

Slugify removes typically illegal characters for use in identifiers

Types

This section is empty.

Jump to

Keyboard shortcuts

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