SHARE
TWEET

Untitled

a guest Aug 20th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package function
  2.  
  3. import (
  4.     "crypto/sha256"
  5.     "fmt"
  6. )
  7.  
  8. // Handle a serverless request
  9. func Handle(req []byte) string {
  10.     s := sha256.Sum256(req)
  11.     return fmt.Sprintf("Hello, Go. You said: %x", s)
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top