Skip to content

✨ Typer is a printer whose output style simulates a typewriter.

License

Notifications You must be signed in to change notification settings

ZacharyBear/typer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Packages

No packages published

Languages