Skip to content

Instantly share code, notes, and snippets.

@clawfire
Created January 31, 2019 18:56
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 clawfire/517f5cfff2b1f8bf28e0e5f0f5c44388 to your computer and use it in GitHub Desktop.
Save clawfire/517f5cfff2b1f8bf28e0e5f0f5c44388 to your computer and use it in GitHub Desktop.
Nuclio function hello world for Smile's innovation article about FaaS
package main
import (
"github.com/nuclio/nuclio-sdk-go"
)
func Handler(ctx *nuclio.Context, evt nuclio.Event) (interface{}, error) {
return nuclio.Response{
Body: []byte("Hello, from nuclio :]"),
}, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment