Skip to content

Instantly share code, notes, and snippets.

@gregworley
gregworley / gobfun.go
Created October 13, 2011 20:33
fun with gob
//Encoding a map to a gob. Save the gob to disk. Read the gob from disk. Decode the gob into another map.
package main
import (
"fmt"
"gob"
"bytes"
"io/ioutil"
)
func main() {