Aucune description

paddy b0fca28a0f init il y a 3 ans
test b0fca28a0f init il y a 3 ans
types b0fca28a0f init il y a 3 ans
.travis.yml b0fca28a0f init il y a 3 ans
README.md b0fca28a0f init il y a 3 ans
go.mod b0fca28a0f init il y a 3 ans
msoleps.go b0fca28a0f init il y a 3 ans
msoleps_test.go b0fca28a0f init il y a 3 ans
property.go b0fca28a0f init il y a 3 ans
sets.go b0fca28a0f init il y a 3 ans

README.md

A reader for Microsoft's OLE Property Set Format.

Example usage:

file, _ := os.Open("test/test.doc")
defer file.Close()
doc, err := mscfb.NewReader(file)
if err != nil {
  log.Fatal(err)
}
props := msoleps.New()
for entry, err := doc.Next(); err == nil; entry, err = doc.Next() {
  if msoleps.IsMSOLEPS(entry.Initial) {
    if oerr := props.Reset(doc); oerr != nil {
      log.Fatal(oerr)
    }
    for _, prop := range props.Property {
      fmt.Printf("Name: %s; Type: %s; Value: %v", prop.Name, prop.Type(), prop)
    }
  }
}

Install with go get github.com/richardlehane/msoleps

Status: currently works for simple property sets like SummaryInformation. Not all types implemented yet (e.g. Array). Property set bags not implemented yet

Build Status