package
0.0.0-20191114162345-b4256443d5ea
Repository: https://github.com/dynport/dgtk.git
Documentation: pkg.go.dev

# README

bsondecoder

Usage

func run(bsonPath string) error {
  f, e := os.Open(bsonPath)
  if e != nil {
    return e
  }
  defer f.Close()

  dec := bsondecoder.New(f)
  for {
    var m bson.M
    if e = dec.Decode(&m); e != nil {
      return e
    }
    log.Printf("%#v", m)
  }
  return nil
}

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author