GoCode Examples - Owen2k6/GoOS GitHub Wiki

Examples

1) Hello Window with Button Jump

regprog=Demo
window=Demo=320=180
button=Demo=OK=80=24=120=120=10
println="Click OK to jump to line 10"
goto=999   // (fall through; the button will redirect to 10 when clicked)

// line 10 (count carefully if you paste!)
println="Button clicked — continuing..."

2) Score Check with Tabs

int score = 15
if=score>=10
	println="Passed"
println="Done"

3) Save & Load

regprog=Demo
string note = Hello World
save=note
string note = (will be overwritten)
load=note
println="Loaded: " + note

4) Input and Colour

frontcolor=yellow
input=Enter your name: 
string name = (placeholder)
string name = input
frontcolor=green
println="Hi, " + name
⚠️ **GitHub.com Fallback** ⚠️