mirror of
https://github.com/KevinMidboe/motdGO.git
synced 2025-10-29 09:40:23 +00:00
readme changes, other default font, go-bindata for default font, little commenting
This commit is contained in:
22
demo/default.go
Normal file
22
demo/default.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// 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)
|
||||
}
|
||||
Reference in New Issue
Block a user