There is a similar Linux version of gogo here.

The Buttons

The basic use is to amend your code, click Compile, then fix any errors. When you get a clean compile, click Link/Run. Your program will execute in a'Dos' window.

The Compile Button - saves your code, runs the compiler.

The Link/run Button - runs the linker, then executes the program.

The Link Only Button - runs the linker. Any link errors appear on-screen.

The Go Fmt button runs the Go source-code formatter/indenter on the current file. It needs to have been compiled (i.e. no syntax errors). Gogo does not allow formatting without a clean compile.

The Compile Pkg button lets you compile a group of source files into one package - most of your packages will be in one file, so you might not use this often.

Do this by creating a directory with the exact same name as your package. Put all the package files in this directory (no others should be put there).

Initially, compile each file separately, to remove trivial errors. Then, with any of the package files loaded into gogo, click on Compile Pkg

You might get compilation errors from ANY file, not only the one currently loaded, so take care with this.

The File menu

Open, Save, Save As, Print, Exit have their normal meanings. NB the Compile button also does a save.

New Go File creates a 'hello world' program, and forces you to save it before you start compiling. You cannot start typing into the editor without creating a new file, or opening an existing one.

The Edit menu

... have their normal meanings.

The Tools menu

Lines Containing - really a simplified grep.

I find this useful to find e.g. variables declared but not used. (They only occur once)

Set Command-Line Args - Used to pass data to programs when they are launched. If one of your args contains spaces, then "quote" them. Here is a line with 3 args:

cat "a dog" fish

Bigger/smaller text - obvious.

Configure Go System - you have to tell gogo where the Go\bin folder is on your system. Just follow the instructions.

Current Go System - tells you which Go system is currently in use by gogo.

Set Run 8.exe - The name of the exe changed - this allows running of the old-style exe files.

Black/white - switches the editor scren from black-on-white to white-on-black and vice-versa.

The Help menu

Most of these link to websites.

Running several copies of gogo

You might wish to simultaneously work on (e.g.) a main program, and a function it calls in another file. You can run several copies of gogo. Note that gogo is not a full IDE, so here is what to do.

If you edit the lower-level function (in the above scenario) you must remember to compile it. Then, move to the 'main' gogo window, and do a link/run. (you do not need to re-compile the main, as the new version of the function is re-linked.)

Bugs, Features, Issues

Some of these are possible to fix/include, some are not. Some depend on the Windows port, which is out of my control.

  • 1 mar 10 - Syntax highlighting - uses Java's reserved words list. Quite possible to change. Sometime...