Go get the current directory path

str, _ := os.Getwd()

Obtain the current path is equivalent to $ pwd command linux platform

Published 204 original articles · won praise 59 · Views 140,000 +

Guess you like

Origin blog.csdn.net/baidu_34122324/article/details/90183129