I have installed Go from gomingw for windows 64 bit. However, I cannot find out anywhere how to actually compile a .go file. This is the program linked directly from the Go wiki for Windows Support, but all the tutorials talk about using 6g and gccgo etc. and none of those work on my windows machine. Actually, what I am trying to do is, I put my "hello.go" in src folder and after going to src folder I run the command "8g hello.go" in command prompt. But. it showing error "open a.go no such file or directory". Can anybody help me by providing correct steps to compile a go program in Windows? Thanks in advance.
相关问题
- Angular: ngc or tsc?
- (ASP.NET) Project file must include 'WindowsBa
- Golang mongodb aggregation
- How to flatten out a nested json structure in go
- How do shader compilers work?
相关文章
- Can I run a single test in a suite?
- How to check if a request was cancelled
- Is it possible to implement an interface with unex
- How to access value of first index of array in Go
- Embedded Interface
- How to force Delphi compiler to display all hints
- Xcode - How to change application/project name : w
- What other neat tricks does the SpecialNameAttribu
Navigate to your source code directory (for example, C:\Arpsss), display the current directory, and display the current directory contents.
Try to compile a non-existent file named
a.go
.This is the error you reported--you tried to compile a file named
a.go
that wasn't in your current directory.Compile, link, and run the hello.go Go source file in the current directory.
The
hello.go
program.