Added Ruby support to fnctl init. (#286)

This commit is contained in:
Travis Reeder
2016-11-15 06:39:20 -08:00
committed by C Cirello
parent 14a5ecd6b9
commit 299422cf7d
38 changed files with 129 additions and 344 deletions

17
examples/hello/go/func.go Normal file
View File

@@ -0,0 +1,17 @@
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)
}