mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 16:56:47 +00:00
19 lines
271 B
Go
19 lines
271 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"io/ioutil"
|
|
"os"
|
|
"strconv"
|
|
"time"
|
|
)
|
|
|
|
func main() {
|
|
input, _ := ioutil.ReadAll(os.Stdin)
|
|
fmt.Println("Stashing request")
|
|
now := time.Now()
|
|
stamp := strconv.FormatInt(now.UnixNano(), 10)
|
|
|
|
ioutil.WriteFile(stamp+".txt", input, 0644)
|
|
}
|