Created
January 17, 2016 20:25
-
-
Save tj/1aeab92189db4bd87774 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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