itchio / sevenzip-go Goto Github PK
View Code? Open in Web Editor NEW๐ฆ Go bindings to use 7-zip as a library
License: MIT License
๐ฆ Go bindings to use 7-zip as a library
License: MIT License
And does not return compressed files checksum.
So how to find such DLL?
sevenzip-go needs two dynamic libraries to operate, and it expects them to be in the executable's folder.
I am looking for a way to integrate this library into my GUI app. As far I know after bundling the app the dynamic libraries will reside inside the "Resources" directory of the app. Will it work?
Hello,
I am interested in using this code for my project, but I am not too familiar with the 7z part of the code. I want to use this code to simply take the archive, Loop through the files and analyze them, without unzipping to the disk.
I am not 100% sure how to go about doing that with your library, and I am a bit in over my head.
looking at your code I have this:
func main() {
//Initialize the lib
lib, err := sz.NewLib()
must(err)
defer lib.free()
//Get the file reference
f, err :- os.Open("file.7z")
must(err)
//Get the file stats
stats, err := f.Stat()
must(err)
//Open the 7z file
is, err := sz.NewInStream(f, "7z", stats.Size())
is.Stats - &sz.ReadStats{}
a, err := lib.OpenArchive(is, true)
must(err)
//This is where my understanding gets a bit fuzzy...
After this it looks like the ecs struct above is used with the "GetStream" function, and I can see how the GetStream function extracts to a file, that makes sense. Here are my more specific questions...
I would be happy to write up some examples like you have for the command line once I understand a very trivial example of opening a file found inside of the archive! Thank you for taking the time to read this!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.