Some Updates
This commit is contained in:
@@ -36,6 +36,11 @@ const (
|
||||
AlignRight
|
||||
)
|
||||
|
||||
// Return if r1 and r2 are the same, ignoring case
|
||||
func RuneEqualsNC(r1, r2 rune) bool {
|
||||
return unicode.ToLower(r1) == unicode.ToLower(r2)
|
||||
}
|
||||
|
||||
func Center(txt string, width int) string {
|
||||
if len(txt) >= width {
|
||||
// Trim from beg & end until width
|
||||
|
||||
Reference in New Issue
Block a user