Tell someone. Here I downloaded and installed the Go language. How now to compile and run the program?
|
3 answers
$ go build fileName.go
- Can you give more details. When I open the command line what to prescribe. If you prescribe go build fileName.go. Writing go is not an internal or external command. - jon2186
- Thank you figure it out. Now it writes imports unicode: C: \ Go \ src \ pkg \ fmt \ format.go: 10: 2: C: \ Go \ src \ pkg \ unicode: found packages unicode (casetables.go) and main (maketables.go) - jon2186
|
Make sure the compiler is in the PATH
If there is something in the source folder shif + pkm> open the PowerShell window here (or the command line)> write go build ./filename.go
like so
this article can also help
|
You can run in the Windows environment go run myProgram.go
where your program is myProgram.go or C:\Go\bin\go.exe run D:/go/myProgram.go
. You can compile and run using the go build - go build D:/go/myProgram.go
|