aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 2079568..3cfacac 100644
--- a/main.go
+++ b/main.go
@@ -4,6 +4,7 @@ import (
"bufio"
"flag"
"fmt"
+ "gemini"
"log"
"os"
)
@@ -48,7 +49,7 @@ func main() {
output string
}{
host: "",
- port: GeminiPort,
+ port: gemini.GeminiPort,
input: "",
output: "",
}
@@ -60,7 +61,6 @@ func main() {
flag.StringVar(&flags.output, "o", flags.output, "write output to path")
flag.Parse()
-
requests, err := read_requests(flags.input)
if err != nil {
log.Panic(err)
@@ -79,9 +79,9 @@ func main() {
log.Printf("Got %d requests\n", len(requests))
for _, request := range requests {
log.Println(request)
- if conn, err := NewGeminiConnFromRequest(request, flags.port); err != nil {
+ if conn, err := gemini.NewGeminiConnFromRequest(request, flags.port); err != nil {
log.Print(err)
- } else if err := conn.Get(FormatRequest(request), output); err != nil {
+ } else if err := conn.Get(gemini.FormatRequest(request), output); err != nil {
log.Print(err)
}
}