Chore: cleanup

This commit is contained in:
Grail Finder
2025-12-14 14:44:24 +03:00
parent edbacb813b
commit 33f9ed2466
2 changed files with 10 additions and 10 deletions

View File

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

10
main.go
View File

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