Files
motdGO/demo/default.go
2016-10-26 18:32:11 +02:00

26 lines
395 B
Go

// Print a simple string with the 'standard' figlet font
package main
import (
"fmt"
"github.com/probandula/figlet4go"
)
// String to be printed
const str string = "Default"
func main() {
// Create the renderer
ascii := figlet4go.NewAsciiRender()
// Render the string
renderStr, err := ascii.Render(str)
if err != nil {
panic(err)
}
// Print the string
fmt.Print(renderStr)
}