CB7 libraries for Go
Both are pure Go and read-only; Go has no maintained 7z writer:
- sevenzip (
github.com/bodgit/sevenzip) mirrorsarchive/zip:OpenReader, aFileslice andf.Open(). It implementsfs.FSand handles solid archives efficiently by reusing the decompressor when you read files in order. - archives (
github.com/mholt/archives) wraps sevenzip with a format-independentfs.FS, so the same code opens CBZ and CBR.
To create comics, write CBZ with archive/zip.