summaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils.go')
-rw-r--r--utils.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils.go b/utils.go
index c0f80bb..ec0802b 100644
--- a/utils.go
+++ b/utils.go
@@ -43,6 +43,16 @@ func negR() (out string){
return
}
+func line(aslongas string, hidden bool) (out string) {
+ n := utf8.RuneCountInString(aslongas)
+ if hidden {
+ out = strings.Repeat(" ",n)
+ }else{
+ out = strings.Repeat(li,n)
+ }
+ return
+}
+
func sub(text string) (out string) {
out = ssli +text
n := utf8.RuneCountInString(out)