mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-08-25 16:55:59 +00:00
f20becda68
Signed-off-by: Sophia Gong <sophia.gong@intel.com>
23 lines
477 B
Go
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))
|
|
}
|