Skip to content

Instantly share code, notes, and snippets.

@rberrelleza
Created August 8, 2019 11:04
Show Gist options
  • Select an option

  • Save rberrelleza/5032aceb18e31c11e81d8e5060285ea3 to your computer and use it in GitHub Desktop.

Select an option

Save rberrelleza/5032aceb18e31c11e81d8e5060285ea3 to your computer and use it in GitHub Desktop.
openfaas + okteto blog post
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