arns-lt-gemini/text_server.go
Arnas Udovicius c185854e14
All checks were successful
continuous-integration/drone/push Build is passing
parse variables
2022-08-18 01:12:11 +03:00

18 lines
289 B
Go

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