Created
August 8, 2019 11:04
-
-
Save rberrelleza/5032aceb18e31c11e81d8e5060285ea3 to your computer and use it in GitHub Desktop.
openfaas + okteto blog post
This file contains hidden or 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 function | |
| import ( | |
| "crypto/sha256" | |
| "fmt" | |
| ) | |
| // Handle a serverless request | |
| func Handle(req []byte) string { | |
| s := sha256.Sum256(req) | |
| return fmt.Sprintf("Hello, Go. You said: %x", s) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment