windows - golang 中的 GetSpecialFolder 等价物

标签 windows go

我正在尝试获取 Windows 的临时文件夹,而不是固定路径 C:\Windows\Temp ,我想使用一些类似于 GetSpecialFolder 的 API在 VBScript 中。

有这样的东西吗?

最佳答案

您使用 os.TempDir()为此。

关于windows - golang 中的 GetSpecialFolder 等价物,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43485414/

相关文章:

php - 当在代码中作为准备好的语句运行时,MySQL 查询在 PHP 中运行缓慢,但通过直接 MySQL 查询运行速度很快

go - 从Wikipedia API解码JSON

go - 我们可以在 go 中动态创建一个函数吗?

C# Windows 注册表 GetValue 错误

windows - 在 Web 应用程序之间共享通用 CSS 和脚本的最佳方式是什么?

windows - 等待可执行文件完成运行

go - 可以将 golang channel 绑定(bind)到模板中

windows - openCV如果getchar将图像显示为灰色

c++ - 在 Windows 上的 ubuntu 上的 bash 上安装 g++

opengl - 如何使用 openGL 的 golang 绑定(bind)定义 gl.DrawBuffers COLOR_ATTACHMENTi