transform

package
v0.0.0-...-68e2c78 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// None is a no-op transformation and does nothing.
	None style = "NONE"

	// Alternate is an "alternating WORD case" transformation.
	Alternate style = "ALTERNATE"

	// Capitalise is a "Capitalise First Letter" transformation.
	Capitalise style = "CAPITALISE"

	// Invert is a "cAPITALISE eVERY lETTER eXCEPT tHE fIRST" transformation.
	Invert style = "INVERT"

	// Lower is a "lower case" transformation.
	Lower style = "LOWER"

	// Upper is an "UPPER CASE" transformation.
	Upper style = "UPPER"

	// Random is a "EVERY word randomly CAPITALISED or NOT" transformation.
	Random style = "RANDOM"
)

Variables

This section is empty.

Functions

func Do

func Do(parts []string, cfg *config.GeneratorConfig, r *rand.Rand) ([]string, error)

Do returns a slice of parts transformed with style s.

Types

This section is empty.

Jump to

Keyboard shortcuts

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