Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package function
- import (
- "crypto/sha256"
- "fmt"
- "time"
- )
- // Handle a serverless request
- func Handle(req []byte) string {
- s := sha256.Sum256(req)
- now := time.Now().Format("2006-01-02T15:04:05")
- return fmt.Sprintf("[%s] Hello, Go. You said: %x", now, s)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement