filipchr / candystore

Candystore parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Candystore

Lets find our top customers!

First, download the repo Run:

$ go build

run the program

$ ./candystore

If you're really frisky pipe it to jq

$ ./candystore | jq

You should now see expected result

[
  {
    "name": "Jonas",
    "favouriteSnack": "Kexchoklad",
    "totalSnacks": 1982
  },
  {
    "name": "Annika",
    "favouriteSnack": "Center",
    "totalSnacks": 208
  },
  {
    "name": "Jane",
    "favouriteSnack": "Nötchoklad",
    "totalSnacks": 22
  },
  {
    "name": "Aadya",
    "favouriteSnack": "Center",
    "totalSnacks": 11
  }
]

About

Candystore parser


Languages

Language:Go 100.0%