Curseforge Fingerprint
A Go library to compute fingerprints for curseforge lookups
Installation
To install the dependencies, run:
go mod tidy
Usage
To use the library, import it and call the GetFingerprintFor
function:
package main
import (
"fmt"
"github.com/meza/curseforge-fingerprint-go"
)
func main() {
filePath := "path/to/your/file"
fingerprint := curseforgeFingerprint.GetFingerprintFor(filePath)
fmt.Println("Fingerprint:", fingerprint)
}
Testing
To run the tests, use the following command:
go test ./...
Contributing
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
License
This project is licensed under the MIT License.