package main import ( "bufio" "fmt" "net" ) func GetSummery() string { fmt.Println(fileSrvHost + ":" + fileSrvPort) 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 }