github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/examples/jwt/func.go (about) 1 package main 2 3 import ( 4 "encoding/json" 5 "fmt" 6 "os" 7 ) 8 9 type Person struct { 10 Name string 11 } 12 13 func main() { 14 p := &Person{Name: "World"} 15 json.NewDecoder(os.Stdin).Decode(p) 16 fmt.Printf("Hello %v!", p.Name) 17 }