Go Language Tutorial

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Go Language Tutorial

Post 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.

Setting up the Language Server
To setup the Go language server follow the instructions found here: https://www.zeusedit.com/lsp/go.html

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

Cheers Jussi
Last edited by jussij on Wed May 02, 2012 7:46 am, edited 1 time in total.
Post Reply