Answers for "golang cwd"

1

golang cwd

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