Skip to content

Latest commit

 

History

History
72 lines (55 loc) · 1.33 KB

README.md

File metadata and controls

72 lines (55 loc) · 1.33 KB

Go Reference



Typer

Typer is a printer whose output style simulates a typewriter.

Shown

Experience now!

Prerequisite

Installed Go and Git on your personal computer.

Clone the repository to your PC

git clone https://github.com/ZenkieBear/typer

Run the main.go file

go run main.go

Import Typer to your application

Install Typer

go get github.com/ZenkieBear/typer

Import typer to your go file

import "github.com/ZenkieBear/typer/typer"

Use Typer

func some() {
	typer.Print("Hey Judy\n")
	typer.Println("Don't be afraid")
}

Configuration

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())
	}
  // ...
}

License

Typer is licensed under MIT