mirror of
https://github.com/KevinMidboe/motdGOi.git
synced 2025-10-29 17:50:24 +00:00
update readme, go fmt
This commit is contained in:
6
char.go
6
char.go
@@ -2,8 +2,8 @@ package figlet4go
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"strings"
|
||||
"github.com/fatih/color"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type AsciiChar struct {
|
||||
@@ -25,7 +25,7 @@ func NewAsciiChar(font *font, char rune) (*AsciiChar, error) {
|
||||
lines := make([]string, height)
|
||||
|
||||
for i := 0; i < height; i++ {
|
||||
row := font.fontSlice[beginRow + i]
|
||||
row := font.fontSlice[beginRow+i]
|
||||
row = strings.Replace(row, "@", "", -1)
|
||||
row = strings.Replace(row, font.hardblank, " ", -1)
|
||||
lines[i] = row
|
||||
@@ -41,4 +41,4 @@ func (char *AsciiChar) GetLine(index int) string {
|
||||
return colorFunc(char.Lines[index])
|
||||
}
|
||||
return char.Lines[index]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user