Typer is a printer whose output style simulates a typewriter.
Installed Go and Git on your personal computer.
git clone https://github.com/ZenkieBear/typer
go run main.go
go get github.com/ZenkieBear/typer
import "github.com/ZenkieBear/typer/typer"
func some() {
typer.Print("Hey Judy\n")
typer.Println("Don't be afraid")
}
Typer supports custom configuration.
You can create a typer.Typer
, and define properties according to your preferences.
func demo() {
// ...
myTyper := typer.Typer{
Base: 300,
FloatRange: 50,
Printer: fmt.Print,
}
if err := myTyper.Print("Hello!"); err != nil {
fmt.Println(err.Error())
}
// ...
}
Typer is licensed under MIT