pseudo

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format struct {
	Options FormatOptions
}

func New

func New(fo FormatOptions) *Format

func (Format) Format

func (pf Format) Format(input string) string

Accepts an incoming string and converts it to Pseudo Translation

type FormatOptions

type FormatOptions struct {
	// The characters to put at the end of output
	AppendChars string

	// The characters to use for the expansion
	ExpandChars string

	// The characters to put at the beginning of output
	PrependChars string

	// Whether to expand the length of text
	PreventExpansion bool

	// The pseudo characters to use when replacing ASCII characters
	PseudoChars map[rune]rune

	// Length of expanded characters appended
	TargetExpansion float64
}

Jump to

Keyboard shortcuts

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