mirror of
https://github.com/KevinMidboe/motdGO.git
synced 2025-10-29 09:40:23 +00:00
Replace all 'L' with '_' for larry3d output
This commit is contained in:
@@ -51,6 +51,7 @@ func main() {
|
|||||||
|
|
||||||
// Render the string
|
// Render the string
|
||||||
renderStr, err := ascii.RenderOpts(*str, options)
|
renderStr, err := ascii.RenderOpts(*str, options)
|
||||||
|
formattedStr := strings.ReplaceAll(renderStr, "L", "_")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -64,7 +65,7 @@ func main() {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
// Write to file
|
// Write to file
|
||||||
b, err := f.WriteString(renderStr)
|
b, err := f.WriteString(formattedStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -73,7 +74,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Default is printing
|
// Default is printing
|
||||||
fmt.Print(renderStr)
|
fmt.Print(formattedStr)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get a slice with colors to give to the RenderOptions
|
// Get a slice with colors to give to the RenderOptions
|
||||||
|
|||||||
Reference in New Issue
Block a user