ASCII Word Art for Go
Acknowledgements
This solution based on common-nighthawk/go-figure by
Daniel Deutsch. Instead of forking, I decided to create a new repository since
the last update was two years ago.
Changes that diverged from the original
- Updated to the latest Go version.
- Removed the features I wasn't using, such as the blink, dance, and scroll.
- Addressed warnings (unused variables, etc., naming conventions, etc.) as reported by Goland.
Description
ASCII Word Art for Go prints beautiful ASCII art from text. It supports FIGlet files and most of its features. The original project by Daniel Deutsch package was inspired by the Ruby gem artii.
Installation
go get -u github.com/twistingmercury/go-figure
Basic Example
package main
import("github.com/twistingmercury/go-figure")
func main() {
myFigure := figure.NewFigure("Hello World", "", true)
myFigure.Print()
}
_ _ _ _ __ __ _ _
| | | | ___ | | | | ___ \ \ / / ___ _ __ | | __| |
| |_| | / _ \ | | | | / _ \ \ \ /\ / / / _ \ | '__| | | / _` |
| _ | | __/ | | | | | (_) | \ V V / | (_) | | | | | | (_| |
|_| |_| \___| |_| |_| \___/ \_/\_/ \___/ |_| |_| \__,_|
You can also make colorful figures:
package main
import (
"github.com/twistingmercury/go-figure"
"log"
)
var colors = []string{
"red", "yellow", "green", "cyan", "blue", "purple", "white", "gray",
}
func main() {
for _, color := range colors {
myArt, _ := figure.NewColorFigure(phrase, "bulbhead", color, false)
myArt.Print()
}
}

Contributing
Because this project is small, we can dispense with formality. Submit a pull request, open an issue, request a change.
All good!