CBZ libraries for Go
Go needs no third-party code for CBZ:
- archive/zip in the standard library reads and writes ZIP, gives random access to entries and implements
fs.FS. Use it when you only handle CBZ. - archives (
github.com/mholt/archives) opens ZIP, RAR, 7z and TAR as anfs.FSwith one call, so a comic reader or server handles CBZ, CBR, CB7 and CBT with the same code.
Parse ComicInfo.xml with encoding/xml into a struct.
- archive/zip Read and write CBZ comic book archives in Go with the standard archive/zip package: pages in natural order, cover extraction, ComicInfo.xml with encoding/xml.
- archives Read and write CBZ comic book archives in Go with mholt/archives: open any comic archive as an fs.FS, list pages in natural order, extract the cover.