Files
fn-serverless/examples/hello/go/func.go
2016-11-15 15:39:20 +01:00

18 lines
208 B
Go

package main
import (
"encoding/json"
"fmt"
"os"
)
type Person struct {
Name string
}
func main() {
p := &Person{Name: "World"}
json.NewDecoder(os.Stdin).Decode(p)
fmt.Printf("Hello %v!", p.Name)
}