mirror of
https://github.com/KevinMidboe/motdGO.git
synced 2025-10-29 17:50:24 +00:00
update readme, go fmt
This commit is contained in:
@@ -75,7 +75,7 @@ func (ar *AsciiRender) RenderOpts(str string, opt *RenderOptions) (string, error
|
||||
// Set color if given
|
||||
if colored {
|
||||
// Start colors from beginning if length is reached
|
||||
if curColorIndex == len(opt.FontColor) {
|
||||
if curColorIndex == len(opt.FontColor) {
|
||||
curColorIndex = 0
|
||||
}
|
||||
// Assign color and increment the index
|
||||
@@ -99,6 +99,6 @@ func (ar *AsciiRender) RenderOpts(str string, opt *RenderOptions) (string, error
|
||||
// A new line at the end
|
||||
result += "\n"
|
||||
}
|
||||
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user