Files
Sophia Gong f20becda68 Add OpenFaaS Clear Linux based GO template
Signed-off-by: Sophia Gong <sophia.gong@intel.com>
2019-12-09 18:30:54 +08:00

23 lines
477 B
Go

// Copyright (c) Alex Ellis 2017. All rights reserved.
// Copyright (c) OpenFaaS Author(s) 2018. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package main
import (
"fmt"
"handler/function"
"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(function.Handle(input))
}