go-figure
go-figure copied to clipboard
PrintFonts for visualization purposes
hi,
small func i had to write that might be added to the package
func PrintFonts(dst io.Writer, phrase string) {
fonts, _ := figure.AssetDir("fonts")
for _, f := range fonts {
f = strings.TrimSuffix(f, ".flf")
myFigure := figure.NewFigure(phrase, f, true)
fmt.Fprintf(dst, `> %v
%v
`, f, myFigure)
}
}