Added Go boilerplate

This commit is contained in:
Travis Reeder
2017-07-20 16:35:07 -07:00
parent 84bbfc0003
commit 5370bc86fa
2 changed files with 87 additions and 1 deletions

View File

@@ -14,7 +14,6 @@ type Person struct {
func main() {
p := &Person{Name: "World"}
json.NewDecoder(os.Stdin).Decode(p)
// fmt.Printf("Hello %v!\n", p.Name)
mapD := map[string]string{"message": fmt.Sprintf("Hello %s", p.Name)}
mapB, _ := json.Marshal(mapD)
fmt.Println(string(mapB))