1
0
mirror of https://github.com/openfaas/faas.git synced 2025-06-19 20:46:41 +00:00
Files
faas/sample-functions/BaseFunctions/golang/handler.go

17 lines
226 B
Go

package main
import (
"fmt"
"io/ioutil"
"log"
"os"
)
func main() {
input, err := ioutil.ReadAll(os.Stdin)
if err != nil {
log.Fatalf("Unable to read standard input: %s", err.Error())
}
fmt.Println(string(input))
}