Skip to content

Instantly share code, notes, and snippets.

@tj
Created January 17, 2016 20:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tj/1aeab92189db4bd87774 to your computer and use it in GitHub Desktop.
Save tj/1aeab92189db4bd87774 to your computer and use it in GitHub Desktop.
package main
import (
"encoding/json"
"github.com/apex/apex"
)
type Message struct {
Hello string `json:"hello"`
}
func main() {
apex.HandleFunc(func(event json.RawMessage, ctx *apex.Context) (interface{}, error) {
return &Message{"World"}, nil
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment