It's a bit rough and doesn't have all the packages you'd expect but it
can at least run the examples in the go tutorial. Better than nothing
and should provide hours of fun.
I also downloaded the zip file from http://go-windows.googlecode.com/files/go-1.zip
It would be great if you can give a step-by-step example to let users
know how to get it working.
----
D:\Tools\go\bin>cat first.go
package main
import "fmt"
func main() {
fmt.Printf("hello, world\n")
}
D:\Tools\go\bin>8c.exe first.go
first.go:1 not a function
first.go:1 syntax error, last name: main
----
I am absolute newbie to Go and I have only Windows installed now. Can
you please help me how to get this hello program working?
Thanks!
Ganesh
> > Thanks, Ali.- Hide quoted text -
>
> - Show quoted text -
> Hi Hector
>
> I also downloaded the zip file from http://go-windows.googlecode.com/files/go-1.zip
>
> It would be great if you can give a step-by-step example to let users
> know how to get it working.
>
> ----
> D:\Tools\go\bin>cat first.go
> package main
>
> import "fmt"
>
> func main() {
> fmt.Printf("hello, world\n")
> }
>
> D:\Tools\go\bin>8c.exe first.go
> first.go:1 not a function
> first.go:1 syntax error, last name: main
>
> ----
>
> I am absolute newbie to Go and I have only Windows installed now. Can
> you please help me how to get this hello program working?
I don't know much about the windows port but: 8g is the Go compiler.
8c is the C compiler. You're running the wrong compiler.
-rob
Can some please write the windows .bat equivalent of MakeGo for me.
And how can one add more packages to this go-windows?
GOROOT = <the extracted go folder>
GOARCH = 386
GOOS = mingw
and you may add <the extracted go folder>\bin to your PATH for easy
access through command prompt.
On Dec 17, 10:09 am, Ganesh <sggan...@gmail.com> wrote:
> Hi Hector
>
> I also downloaded the zip file fromhttp://go-windows.googlecode.com/files/go-1.zip