Skip to content
GeorgeNava edited this page Jul 5, 2011 · 16 revisions

Welcome to the app.go wiki!

To use app.go just copy it to your root folder like this:

/hello
- /app  <-- here
- /hello
- app.yaml

The simplest program that runs is a "hello world" like this:

package hello

import "app"

function init(){
  app.Start()
  app.Get("/index",index)
}

function index(ctx app.Context){
  ctx.Show("index")  // index.html
}
Clone this wiki locally