I think your GOROOT and GOPATH is causing the issue. "fmt" package is present inside {go_installation_dir}\src and not {go_installation_dir}\bin\src.
Unset the GOROOT and GOPATH environment variables using the following commands to unset the GOROOT and GOPATH environment variables temporarily: set GOROOT= set GOPATH= and then try running or building your code again. If it works, unset your GOROOT and GOPATH environment variables permanently. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.