diff --git a/reader.go b/reader.go index 0b6ab26..b6b81c5 100644 --- a/reader.go +++ b/reader.go @@ -8,12 +8,21 @@ import ( "net/http" "regexp" "strings" + "strconv" ) +type chapter struct { + Label string + Link string + Depth int + Active bool +} + type readData struct { S Status Book Book Txt template.HTML + Chapters []chapter Next string Prev string Back string @@ -46,6 +55,10 @@ func cleanHtml(html string) string { return "