https://github.com/phaag/go-vba
Go implementation for VBA decompression
https://github.com/phaag/go-vba
Last synced: 6 months ago
JSON representation
Go implementation for VBA decompression
- Host: GitHub
- URL: https://github.com/phaag/go-vba
- Owner: phaag
- License: bsd-2-clause
- Created: 2020-02-17T16:31:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-17T17:56:16.000Z (over 6 years ago)
- Last Synced: 2024-06-20T11:56:55.517Z (about 2 years ago)
- Language: Go
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-vba
This package implements the VBA decompression code in Go. It
follows the Golang standards for Reader/Writer model.
## Example:
```go
import {
"github/phaag/ole-vba"
)
rfd, _ = os.OpenFile(inFile)
wfd, _ = os.OpenFile(outFile, os.O_RDWR|os.O_CREATE, 0755)
vba := vba.NewWriter(wfd)
_, err = io.Copy(vba, rfd)
vba.Close()
```
If you prefer a function call, you may use the integrated wrapper:
```go
func DecompressFile(inFile, outFile string) (bool, error)
```
The code follows basically olevba from oletools. The outFile is a simple .txt file containing the decompressed VBA code.