Installation¶
Requirements¶
- Go 1.23 or later (for iterator support)
Install the Library¶
Install the CLI Tool¶
Import in Your Code¶
Verify Installation¶
Create a simple test program:
package main
import (
"fmt"
"log"
outlookpst "github.com/grokify/outlook-pst-go"
)
func main() {
pst, err := outlookpst.Open("test.pst")
if err != nil {
log.Fatal(err)
}
defer pst.Close()
fmt.Printf("Format: %s\n", pst.Format())
fmt.Printf("Encryption: %s\n", pst.CryptMethod())
}
Run it: