Answers for "print pwd in golang"

Go
1

golang pwd

path, err := os.Getwd()
if err != nil {
    log.Println(err)
}
fmt.Println(path)  // for example /home/user
Posted by: Guest on April-13-2021

Browse Popular Code Answers by Language