summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-12-14 14:44:24 +0300
committerGrail Finder <wohilas@gmail.com>2025-12-14 14:44:24 +0300
commit33f9ed2466e960223389da59a423cc697ff615ba (patch)
tree149105a4c68d5d4640365110856659d6e18b98b3
parentedbacb813bd148db33d8747ada293ef2acabe7e9 (diff)
Chore: cleanup
-rw-r--r--helpfuncs.go10
-rw-r--r--main.go10
2 files changed, 10 insertions, 10 deletions
diff --git a/helpfuncs.go b/helpfuncs.go
index edcb7fe..194d68c 100644
--- a/helpfuncs.go
+++ b/helpfuncs.go
@@ -8,8 +8,18 @@ import (
"os"
"path"
"strings"
+ "unicode"
)
+func isASCII(s string) bool {
+ for i := 0; i < len(s); i++ {
+ if s[i] > unicode.MaxASCII {
+ return false
+ }
+ }
+ return true
+}
+
func colorText() {
text := textView.GetText(false)
quoteReplacer := strings.NewReplacer(
diff --git a/main.go b/main.go
index 63d0976..ec175bf 100644
--- a/main.go
+++ b/main.go
@@ -3,7 +3,6 @@ package main
import (
"flag"
"strconv"
- "unicode"
"github.com/rivo/tview"
)
@@ -23,15 +22,6 @@ var (
focusSwitcher = map[tview.Primitive]tview.Primitive{}
)
-func isASCII(s string) bool {
- for i := 0; i < len(s); i++ {
- if s[i] > unicode.MaxASCII {
- return false
- }
- }
- return true
-}
-
func main() {
apiPort := flag.Int("port", 0, "port to host api")
flag.Parse()