mirror of
https://github.com/KevinMidboe/motdGOi.git
synced 2025-10-29 01:30:25 +00:00
23 lines
360 B
Go
23 lines
360 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, _ := ascii.Render(str)
|
|
|
|
// Print the string
|
|
fmt.Print(renderStr)
|
|
}
|