Some Updates

This commit is contained in:
2025-10-02 12:12:52 -05:00
parent 998531f95d
commit 4b647d9d41
9 changed files with 150 additions and 24 deletions

View File

@@ -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