Files
fn-serverless/images/hello/hello.go
2017-05-30 09:52:44 -07:00

18 lines
210 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!\n", p.Name)
}