Skip to content

Instantly share code, notes, and snippets.

func DecodeJson(r io.ReadCloser, itemChan chan<- []interface{}) error {
defer close(itemChan)
dec := json.NewDecoder(r)
// read open bracket
_, err := dec.Token()
if err != nil {
panic(err)
}

Keybase proof

I hereby claim:

  • I am zetsub0u on github.
  • I am zetsubou (https://keybase.io/zetsubou) on keybase.
  • I have a public key whose fingerprint is 159B 8EEF 12DF E688 D104 FBF7 A6CF F31A BA88 1B68

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am Minjung on github.
  • I am zetsubou (https://keybase.io/zetsubou) on keybase.
  • I have a public key whose fingerprint is 99E5 5AA8 4E50 A33E 19A3 D38F 2117 64F9 4553 93C9

To claim this, I am signing this object: