Documentation ¶
Index ¶
- type AuthorList
- type Book
- type BookList
- func (bl BookList) Authors() *AuthorList
- func (bl BookList) Filtered(fn func(b *Book) bool) BookList
- func (bl BookList) Series() *SeriesList
- func (bl BookList) Skip(n int) BookList
- func (l BookList) SortBy(sort string) (nl BookList, sorted bool)
- func (bl BookList) Sorted(less func(a, b *Book) bool) BookList
- func (bl BookList) Take(n int) BookList
- type SeriesList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorList ¶
type AuthorList []struct{ Name, ID string }
func (AuthorList) Sorted ¶
func (al AuthorList) Sorted(less func(a, b struct{ Name, ID string }) bool) AuthorList
type Book ¶
type BookList ¶
type BookList []*Book
func (BookList) Authors ¶
func (bl BookList) Authors() *AuthorList
func (BookList) Series ¶
func (bl BookList) Series() *SeriesList
type SeriesList ¶
type SeriesList []struct{ Name, ID string }
func (SeriesList) Sorted ¶
func (sl SeriesList) Sorted(less func(a, b struct{ Name, ID string }) bool) SeriesList
Click to show internal directories.
Click to hide internal directories.