1 Star 1 Fork 0

李爽/go-utils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
utils.go 240 Bytes
一键复制 编辑 原始数据 按行查看 历史
李爽 提交于 2023-12-19 17:50 . 添加一些函数
package utils
import (
"fmt"
"os"
"path/filepath"
)
func init() {
execPath, err := os.Executable()
if err != nil {
fmt.Println("get exec path error: ", err)
os.Exit(1)
}
ExecPath = execPath
LocalDir = filepath.Dir(execPath)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/love_bass/go-utils.git
git@gitee.com:love_bass/go-utils.git
love_bass
go-utils
go-utils
v0.1.2

搜索帮助