全て。執筆中のライブラリの概念実証として、Go でチャット クライアントを作成しています。ユーザー入力を受け取り、受信メッセージを同じターミナル ウィンドウに出力する必要があります。以下を検討してください。
user@debian ~ $ ./client
no session> 192.168.1.100
> Hello, there!
Hi!
> So, did you get that feature working yet?
Nope. I thought you were going to ask on StackOverflow.
>> Yeah, I'm aski
入力中に別のメッセージが届いた場合は、次のメッセージが表示されます。
user@debian ~ $ ./client
no session> 192.168.1.100
> Hello, there!
Hi!
> So, did you get that feature working yet?
Nope. I thought you were going to ask on StackOverflow.
Or did you want me to?
>> Yeah, I'm aski
Goでこれを行う方法はありますか?
ありがとう :)