2022-08-07 05:47:15 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bufio"
|
|
|
|
"fmt"
|
|
|
|
"net"
|
|
|
|
)
|
|
|
|
|
|
|
|
func GetSummery() string {
|
2022-08-17 21:06:47 +00:00
|
|
|
conn, err := net.Dial("tcp", "127.0.0.1:8301")
|
2022-08-07 05:47:15 +00:00
|
|
|
if err != nil {
|
|
|
|
panic(err.Error())
|
|
|
|
}
|
|
|
|
fmt.Fprintf(conn, "\n")
|
|
|
|
message, err := bufio.NewReader(conn).ReadString('\n')
|
|
|
|
conn.Close()
|
|
|
|
return message
|
|
|
|
}
|