arns-lt-gemini/text_server.go
Arnas Udovicius d59c6b9f39
All checks were successful
continuous-integration/drone/push Build is passing
host params
2022-08-18 00:06:58 +03:00

18 lines
278 B
Go

package main
import (
"bufio"
"fmt"
"net"
)
func GetSummery() string {
conn, err := net.Dial("tcp", "127.0.0.1:8301")
if err != nil {
panic(err.Error())
}
fmt.Fprintf(conn, "\n")
message, err := bufio.NewReader(conn).ReadString('\n')
conn.Close()
return message
}