https://github.com/gocaio/metagoffice
Microsoft Office Metadata Extractor for Goca
https://github.com/gocaio/metagoffice
go goca golang hacking metadata office osint
Last synced: 8 months ago
JSON representation
Microsoft Office Metadata Extractor for Goca
- Host: GitHub
- URL: https://github.com/gocaio/metagoffice
- Owner: gocaio
- License: apache-2.0
- Created: 2019-04-24T18:13:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-24T18:51:06.000Z (about 7 years ago)
- Last Synced: 2025-04-13T16:44:35.056Z (about 1 year ago)
- Topics: go, goca, golang, hacking, metadata, office, osint
- Language: Go
- Homepage:
- Size: 68.4 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Package to extract metadata of Office files
[](https://travis-ci.com/kevinborras/metagoffice)
[](https://goreportcard.com/badge/github.com/kevinborras/metagoffice)
This package is intended to be a powerful alternative to other solutions for extract metadata from Office files.
The main features of metagoffice are:
* Read metadata of xlsx files.
* Read metadata of docx files.
* Read metadata of pptx files.
## How to use ?
---
```golang
package main
import (
"fmt"
"github.com/gocaio/metagoffice"
)
func main() {
file, err := os.Open("document.docx")
if err != nil {
log.Fatal(err)
}
file.Close()
content, err := metagoffice.GetContent(file)
if err != nil {
log.Fatal(err)
}
fmt.Println("Title: ", content.Title)
fmt.Println("Subject: ", content.Subject)
fmt.Println("Creator: ", content.Creator)
fmt.Println("Keywords: ", content.Keywords)
fmt.Println("Description: ", content.Description)
fmt.Println("Last modified by: ", content.LastModifiedBy)
fmt.Println("Revision: ", content.Revision)
fmt.Println("Created: ", content.Created)
fmt.Println("Modified: ", content.Modified)
fmt.Println("Category: ", content.Category)
}
```
Output
```
Title: Test Document
Subject:
Creator: Soler, Kevin
Keywords: This is a tag
Description: This is a comment
Last modified by: Soler, Kevin
Revision: 4
Created: 2018-10-12T14:01:00Z
Modified: 2018-10-15T11:23:00Z
Category:
```