Documentation ¶
Overview ¶
Package zalgo implements a zalgo text io.Writer.
In addition to providing the basic Zalgo text transformation, two default transformers are provided:
Corruption - writes to os.Stdout Perdition - writes to os.Stderr
These defaults are set with what are reasonable defaults (whatever that might mean in this context).
So for example:
fmt.Fprintln(zalgo.Corruption, "ZALGO!")
will print something like the following to stdout:
Z̗̻̭̫A̝̼̼̯ͩͅL̠͍̮̝ͪG͓͚̣͙͈ͪO͕̍ͨ!̭̒
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Corruption = NewCorrupter(os.Stdout) Perdition = NewCorrupter(os.Stderr) )
Functions ¶
This section is empty.
Types ¶
type Corrupter ¶
type Corrupter struct { Up complex128 Middle complex128 Down complex128 Zalgo // contains filtered or unexported fields }
Corrupter implements io.Writer transforming plain text to zalgo text.
func NewCorrupter ¶
NewCorrupter returns a new Corrupter that writes to w.
Click to show internal directories.
Click to hide internal directories.