https://github.com/fmartingr/go-comicinfo
Golang implementation of the ComicInfo spec to write and read comicinfo.xml files.
https://github.com/fmartingr/go-comicinfo
cbz comicinfo
Last synced: 7 months ago
JSON representation
Golang implementation of the ComicInfo spec to write and read comicinfo.xml files.
- Host: GitHub
- URL: https://github.com/fmartingr/go-comicinfo
- Owner: fmartingr
- License: mit
- Created: 2023-09-25T16:27:18.000Z (about 2 years ago)
- Default Branch: latest
- Last Pushed: 2024-12-01T14:12:53.000Z (11 months ago)
- Last Synced: 2025-03-25T14:21:40.187Z (7 months ago)
- Topics: cbz, comicinfo
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-comicinfo
[](https://pkg.go.dev/github.com/fmartingr/go-comicinfo/v2)
[](https://goreportcard.com/report/github.com/fmartingr/go-comicinfo/v2)
[](https://codecov.io/gh/fmartingr/go-comicinfo)
[](https://opensource.org/licenses/MIT)
Golang implementation of the [ComicInfo.xml specification](https://anansi-project.github.io/docs/category/comicinfo) to read and write `comicinfo.xml` files.
## Contributing
Contributions are welcome, please open an issue or a pull request.
## Versioning
This project uses [Semantic Versioning](https://semver.org/) and will follow the major and minor versions of the [ComicInfo.xml specification](https://anansi-project.github.io/docs/category/comicinfo), while using the hotfix version for any changes to the library itself.
## Usage example
```go
package main
import "github.com/fmartingr/go-comicinfo/v2"
func main() {
ci := comicinfo.NewComicInfo()
ci.Series = "One Piece"
ci.Number = "3093"
ci.Summary = "Luffy and the Straw Hat Pirates return in an all-new Epic Voyage!"
ci.AgeRating = comicinfo.AgeRatingEveryone
ci.LanguageISO = "en"
for i := 1; i <= 17; i++ {
ci.Pages.Pages = append(ci.Pages.Pages, comicinfo.ComicPageInfo{
Image: i,
})
}
_ = comicinfo.Write(ci, "volume/comicinfo.xml")
}
```
Result
```xml
One Piece
3093
Luffy and the Straw Hat Pirates return in an all-new Epic Voyage!
en
Everyone
```
## License
[MIT LICENSE](LICENSE)