Skip to content

Instantly share code, notes, and snippets.

View njern's full-sized avatar

Niclas Jern njern

  • Walkbase
  • Turku, Finland
View GitHub Profile

Keybase proof

I hereby claim:

  • I am njern on github.
  • I am njern (https://keybase.io/njern) on keybase.
  • I have a public key whose fingerprint is 8B15 7037 9F65 C2A2 7FEE 0BF9 504F 77AF 2068 384A

To claim this, I am signing this object:

@njern
njern / gist:8a0c5a2ad09624bbf0fe
Created July 21, 2014 09:25
Reading and parsing JSON from a file in Go
package main
import (
"encoding/json"
"io/ioutil"
"log"
)
file, err := ioutil.ReadFile("file.json")
if err != nil {