dourang8305 2017-04-19 02:42
浏览 37
已采纳

Golang中的GetSpecialFolder等效项

I'm trying to get the temp folder of windows, other than a fixed path C:\Windows\Temp, I'd like to use some API similar to GetSpecialFolder in VBScript.

Is there anything like that?

  • 写回答

1条回答 默认 最新

  • drslez4322 2017-04-19 02:54
    关注

    You use os.TempDir() for that.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?