Skip to content

Instantly share code, notes, and snippets.

@mweagle
Created November 8, 2016 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mweagle/df520c25191600089878a586386ea780 to your computer and use it in GitHub Desktop.
Save mweagle/df520c25191600089878a586386ea780 to your computer and use it in GitHub Desktop.
// Standard AWS λ function
func helloWorld(event *json.RawMessage,
context *sparta.LambdaContext,
w http.ResponseWriter,
logger *logrus.Logger) {
helloWorldCounterMetric.Inc(1)
fmt.Fprint(w, "Hello World")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment