Files
go-dpkg/README.md
Matheus Sampaio Queiroga fb6024ec5d big update and move dpkg module
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2025-03-13 14:40:14 -03:00

52 lines
1.1 KiB
Markdown

# go-dpkg
`go-dpkg` is a Go library for parsing and working with Debian package files (`.deb`). This library provides utilities to extract and manipulate the contents of Debian packages, making it easier to integrate Debian package management into your Go applications.
## Features
- Parse Debian package files (`.deb`)
- Extract package metadata
- Manipulate package contents
- Easy integration with Go applications
## Installation
To install `go-dpkg`, use `go get`:
```sh
go get sirherobrine23.com.br/sirherobrine23/go-dpkg
```
## Usage
Here is a simple example of how to use `go-dpkg` to parse a Debian package file:
```go
package main
import (
"fmt"
"log"
"sirherobrine23.com.br/sirherobrine23/go-dpkg/dpkg"
)
func main() {
pkg, err := dpkg.Open("example.deb")
if err != nil {
log.Fatal(err)
}
fmt.Println("Package Name:", pkg.Name)
fmt.Println("Version:", pkg.Version)
fmt.Println("Architecture:", pkg.Architecture)
}
```
## Contributing
Contributions are welcome! Please open an issue or submit a pull request.
## Contact
For any questions or suggestions, please open an issue.