Golang Cwd

[Solved] Golang Cwd | Go - Code Explorer | yomemimo.com
Question : golang cwd

Answered by : repulsive-rattlesnake-gu3cvrxkcaqj

path, err := os.Getwd()
if err != nil { log.Println(err)
}
fmt.Println(path) // for example /home/user

Source : https://yourbasic.org/golang/current-directory/ | Last Update : Tue, 20 Apr 21

Answers related to golang cwd

Code Explorer Popular Question For Go