I am learning Google\'s new language Go. I am just trying stuff out and I noticed that if you declare a variable and do not do anything with it the go compiler (8g
You could try this:
cwd, _ := os.Getwd();
but it seems like it would be better to keep the error like in Jurily's answer so you know if something went wrong.