Page 1 of 1

Go Language Tutorial

Posted: Fri Mar 30, 2012 5:14 am
by jussij
Here are some videos highlighting some of the Zeus, Go programming features: To program in the Go language using the Zeus IDE do the following.

1) Install the Go language using the installer found here: http://code.google.com/p/go/downloads/list

2) Make sure you are running the Zeus Version 3.97j or better, which can be downloaded from here.

3) Create this c:\temp\test.go file shown below:

Code: Select all

package main

import "fmt"

func main() {
    fmt.Printf("Go, Hello world!\n")
}
4) Use the Compiler, Compile menu to compile this file.

5) Use the Macros, Run 'test.go' File menu to compile and run the file. This should result in the following output:

Code: Select all

---------------------------------------------------------------------------
      Zeus for Windows Programmers Editor - Version 3.97j
      Copyright (c) Xidicone P/L 1993-2012.  All rights reserved.
---------------------------------------------------------------------------

Go, Hello world!
6) To format the code to Go formatting standards just save the file and it will be automatically formatted. Alternatively, to manually trigger the format use the Macros, Go Format: 'test.go' menu.

Autocomplete for Google App Engine
To get the autocomplete to work with the Google App Engine follow the instructions found here: viewtopic.php?f=5&t=7458

Cheers Jussi