Skip to content

Instantly share code, notes, and snippets.

View bitkevin's full-sized avatar

Kevin Pan bitkevin

  • Beijing, China
View GitHub Profile
@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() {