Using GoCode - Owen2k6/GoOS GitHub Wiki

GoCode Requires GoOS HDD support to be enabled.

Spearheaded by ekeleze.

Note: As of now, if statements are limited. The only way to get the full functionality that you get from other languages is to combine it with goto.

What is GoCode

GoCode is a simple coding language used for GoOS in order for users to make apps, maybe even games!

The Source code is entirely open and is located in run.cs

Feel free to contribute

How to set up your first GoCode program.

To start, make a file that ends in .goexe or .gexe. Then open it in notepad.

Next, you are going to want to register your programs name with GoOS so you can save variables for later, like so: regprog=program name here(but replace "program name here" with your program name. Make sure it's unique.)

Note: You don't technically have to do this, but it's recommended if you want to save variables.

Now, to print hello world: print="Hello World!" or if you want to use println: println="Hello World!"

Then you can test it by running it with run filename-here in the directory its in after saving and quitting the notepad.

Variables

Strings

You can make a string like so: string name-here = "value"

strings can be used with print and println like so: print=variable name / println=variable name

Integers

You can make an integer like so: int name-here = number here

integers can be used with print and println like so: print=variable name / println=variable name