go

关闭可能是os.Stdin的io.Reader。

英文: Closing an io.Reader that might be an os.Stdin 问题 我正在尝试根据给定的文件名设置文件输入,如果没有给定文件名,则使用标准输入。我原以为可以这样...