M
M
Mike2016-07-25 16:43:37
go
Mike, 2016-07-25 16:43:37

How to change / change directory in golang?

How to view the current directory in Golang?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IllusionTurtle, 2016-07-25
@google_online

os.Getwd- get the current working directory
os.Chdir- change the working directory - so it must be valid!
PS don't ignore errors especially if something doesn't work...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question