Documentation ¶
Index ¶
- type AllPackages
- func (a AllPackages) GetCategories() []CategoryName
- func (a AllPackages) GetPackageByName(name string) Package
- func (a AllPackages) GetPackagesByCategory(category CategoryName) []Package
- func (a AllPackages) GetPackagesByCategoryNumber(query string) ([]Package, error)
- func (a AllPackages) GetTopPackagesSortedByStars(query string) []Package
- type CategoryName
- type Package
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllPackages ¶
type AllPackages map[CategoryName][]Package
func (AllPackages) GetCategories ¶
func (a AllPackages) GetCategories() []CategoryName
func (AllPackages) GetPackageByName ¶
func (a AllPackages) GetPackageByName(name string) Package
TODO optimize this
func (AllPackages) GetPackagesByCategory ¶
func (a AllPackages) GetPackagesByCategory(category CategoryName) []Package
func (AllPackages) GetPackagesByCategoryNumber ¶
func (a AllPackages) GetPackagesByCategoryNumber(query string) ([]Package, error)
func (AllPackages) GetTopPackagesSortedByStars ¶
func (a AllPackages) GetTopPackagesSortedByStars(query string) []Package
TODO optimize this
type CategoryName ¶
type CategoryName string
Click to show internal directories.
Click to hide internal directories.