Loading

golang 获取当前项目的根路径

 

使用filepath包下的Abs函数。

获取当前项目的根路径:

filepath.Abs("") 

 

posted @ 2021-07-29 20:20  拾月凄辰  阅读(1390)  评论(0编辑  收藏  举报