mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 08:12:36 +02:00
dry verbose list files in sorted order sort support 3 mode mode 0: path=alpha, file=alpha mode 1: path=alphanum, file=alpha mode 2: path=alphanum, file=alphanum improve alphanum sort, supporting double page like "p51-52"
23 lines
361 B
Go
23 lines
361 B
Go
package epub
|
|
|
|
import (
|
|
"encoding/xml"
|
|
)
|
|
|
|
type TocTitle struct {
|
|
XMLName xml.Name `xml:"a"`
|
|
Value string `xml:",innerxml"`
|
|
Link string `xml:"href,attr"`
|
|
}
|
|
|
|
type TocChildren struct {
|
|
XMLName xml.Name `xml:"ol"`
|
|
Tags []*TocPart
|
|
}
|
|
|
|
type TocPart struct {
|
|
XMLName xml.Name `xml:"li"`
|
|
Title TocTitle
|
|
Children *TocChildren `xml:",omitempty"`
|
|
}
|