Documentation
¶
Index ¶
- func CleanElement(html string, re *regexp.Regexp) []string
- func CleanText(str string) string
- func GetPlatforms() []string
- func NewRequest(method, url string, body io.Reader, headers [][2]string, ...) ([]byte, int, error)
- func NewRequestBrowser(method, url string, body io.Reader) ([]byte, int, error)
- func RenderImagenFromURL(url string, cols, row int) (string, error)
- func SearchElements(html string, re *regexp.Regexp) [][]string
- func TruncateText(str string, maxLength int) string
- type AnilistDataAnime
- type AnilistDataPage
- type AnilistPage
- type AnilistResponseAnime
- type AnilistResponseList
- type AnimeChoice
- type DataModel
- type EpisodesAnime
- type GraphQLRequest
- type MediaModel
- type NextAiringEpisodeModel
- type PlatformChoice
- type TitleModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPlatforms ¶
func GetPlatforms() []string
func NewRequest ¶
func NewRequestBrowser ¶
func TruncateText ¶
Types ¶
type AnilistDataAnime ¶
type AnilistDataAnime struct {
Media MediaModel `json:"Media"`
}
type AnilistDataPage ¶
type AnilistDataPage struct {
Page AnilistPage `json:"Page"`
}
type AnilistPage ¶
type AnilistPage struct {
Media []MediaModel `json:"media"`
}
type AnilistResponseAnime ¶
type AnilistResponseAnime struct {
Data AnilistDataAnime `json:"data"`
}
func RequestAnilistAnime ¶
func RequestAnilistAnime(anime string) (AnilistResponseAnime, error)
type AnilistResponseList ¶
type AnilistResponseList struct {
Data AnilistDataPage `json:"data"`
}
func RequestAnimeList ¶
func RequestAnimeList(anime string) (AnilistResponseList, error)
type AnimeChoice ¶
func (AnimeChoice) Description ¶
func (i AnimeChoice) Description() string
func (AnimeChoice) FilterValue ¶
func (i AnimeChoice) FilterValue() string
func (AnimeChoice) Title ¶
func (i AnimeChoice) Title() string
type DataModel ¶
type DataModel struct {
Media MediaModel `json:"media"`
}
type EpisodesAnime ¶
type EpisodesAnime struct {
Episode uint
}
func (EpisodesAnime) Description ¶
func (i EpisodesAnime) Description() string
func (EpisodesAnime) FilterValue ¶
func (i EpisodesAnime) FilterValue() string
func (EpisodesAnime) Title ¶
func (i EpisodesAnime) Title() string
type GraphQLRequest ¶
type MediaModel ¶
type MediaModel struct {
Id int `json:"id"`
Status string `json:"status"`
Episodes *uint `json:"episodes"`
NextAiringEpisode NextAiringEpisodeModel `json:"nextAiringEpisode"`
Title TitleModel `json:"title"`
Description string `json:"description"`
}
type NextAiringEpisodeModel ¶
type NextAiringEpisodeModel struct {
Episode *uint `json:"episode"`
}
type PlatformChoice ¶
type PlatformChoice struct {
NamePlatform string
}
func (PlatformChoice) Description ¶
func (i PlatformChoice) Description() string
func (PlatformChoice) FilterValue ¶
func (i PlatformChoice) FilterValue() string
func (PlatformChoice) Title ¶
func (i PlatformChoice) Title() string
type TitleModel ¶
Click to show internal directories.
Click to hide internal directories.