os.OpenFile(filename, os.O_APPEND|os.O_WRONLY, 0666)
参考文献:
https://stackoverflow.com/questions/33851692/golang-bad-file-descriptor