summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-02-11 09:21:46 +0300
committerGrail Finder <wohilas@gmail.com>2025-02-11 09:21:46 +0300
commitf0fb6a31370024f7bd4a711856f9af21e6e322c4 (patch)
tree33f1ff6a4c4bba6a5efc3b4ffb37baaf2c23b1d4 /main.go
parent54680539085d354ac9473fa451e284963e12000a (diff)
Fix: /v1 chat endpoint; linter
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index df9e5ba..0b3bae5 100644
--- a/main.go
+++ b/main.go
@@ -2,7 +2,7 @@ package main
import (
"flag"
- "fmt"
+ "strconv"
"unicode"
"github.com/rivo/tview"
@@ -30,7 +30,7 @@ func main() {
flag.Parse()
if apiPort != nil && *apiPort > 3000 {
srv := Server{}
- srv.ListenToRequests(fmt.Sprintf("%d", *apiPort))
+ srv.ListenToRequests(strconv.Itoa(*apiPort))
return
}
pages.AddPage("main", flex, true, true)