CreateFile hello.go: The system cannot find the file specified

107 views
Skip to first unread message

Kapil Dev

unread,
Sep 21, 2019, 8:08:54 PM9/21/19
to golang-nuts
Hello Folks

I am novice in Golang. I just installed Golang on my window based machine and following are env details

 

env_Capture.JPG

But i am getting error "CreateFile hello.go: The system cannot find the file specified."; while ring to execute with following  command

Execute_Capture.JPG







The file"hello.go" location is "E:\Projects\Go\src" shown as below

Location_Capture.JPG
















Please help me to get it resolved.

Thanks,
Kapil Dev

Rick

unread,
Sep 21, 2019, 8:24:56 PM9/21/19
to golang-nuts
Please share hello.go Seems likely it's a Windows vs. *nix file file path issue.

Shani kumar

unread,
Sep 21, 2019, 9:46:08 PM9/21/19
to golang-nuts
Navigate to the location of file hello.go and then try to run it. like this---E:\Projects\Go\src>go run hello.go

Wojciech S. Czarnecki

unread,
Sep 22, 2019, 5:05:20 AM9/22/19
to golan...@googlegroups.com, kapil.k...@gmail.com
On Fri, 20 Sep 2019 02:51:04 -0700 (PDT)
Kapil Dev <kapil.k...@gmail.com> wrote:

> following are env details

Do not post images of text to this list ever again, please.
Some people that read go-nuts have low vision and use screen readers.

Samples of code should be posted to https://play.golang.org and shared via link.

> Kapil Dev

--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
Reply all
Reply to author
Forward
0 new messages