Documentation ¶
Index ¶
- Constants
- type Genre
- type GenreAlt
- type GenreDescr
- type GenresTree
- func (gt *GenresTree) GenreName(genre, lang string) string
- func (gt *GenresTree) ListGenres() []Genre
- func (gt *GenresTree) ListSubGenres(genre string) []Subgenre
- func (gt *GenresTree) Refine(b *model.Book)
- func (gt *GenresTree) String() string
- func (gt *GenresTree) SubgenreName(sg *Subgenre, lang string) string
- type RootDescr
- type Subgenre
Constants ¶
View Source
const ALT_GENRES_XML = `` /* 39131-byte string literal not displayed */
View Source
const GENRES_XML = `` /* 72246-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenreDescr ¶
type GenresTree ¶
func NewGenresTree ¶
func NewGenresTree(treeFile string) *GenresTree
func (*GenresTree) GenreName ¶
func (gt *GenresTree) GenreName(genre, lang string) string
func (*GenresTree) ListGenres ¶
func (gt *GenresTree) ListGenres() []Genre
func (*GenresTree) ListSubGenres ¶
func (gt *GenresTree) ListSubGenres(genre string) []Subgenre
func (*GenresTree) Refine ¶ added in v1.0.0
func (gt *GenresTree) Refine(b *model.Book)
func (*GenresTree) String ¶
func (gt *GenresTree) String() string
func (*GenresTree) SubgenreName ¶
func (gt *GenresTree) SubgenreName(sg *Subgenre, lang string) string
type Subgenre ¶
type Subgenre struct { Value string `xml:"value,attr"` Descriptions []GenreDescr `xml:"genre-descr"` Alts []GenreAlt `xml:"genre-alt"` }
Click to show internal directories.
Click to hide internal directories.