go

从os.stdout读取

英文: Read from os.stdout 问题 我想将日志信息发送到一个套接字,为了实现这一目标,我需要首先捕获 os.stdout。我知道可以使用 os.pipe 重定向 os.stdout。...