TCPServer示例调整

This commit is contained in:
John
2018-01-09 10:14:24 +08:00
parent 7fecb2a9f0
commit 220cd6f1f8

View File

@ -10,7 +10,7 @@ func main() {
for {
buffer := make([]byte, 1024)
if length, err := conn.Read(buffer); err == nil {
conn.Write(append([]byte("What you send, what you receive: "), buffer[0 : length]...))
conn.Write(append([]byte("> "), buffer[0 : length]...))
}
}
}).Run()