func GetTopManga(subType string, page int) (*TopManga, error) {
	res := &TopManga{}
	err := urlToStruct(fmt.Sprintf("/top/manga/%d/%s",
		page, url.QueryEscape(subType)), res)
	if err != nil {
		return nil, err
	}
	return res, nil
}
GetTopManga returns top manga
package jikan
import (
	"fmt"
	"net/url"
	"time"
)
type TopAnime struct {
	Top []struct {
		MalID     int     `json:"mal_id"`
		Rank      int     `json:"rank"`
		Title     string  `json:"title"`
		URL       string  `json:"url"`
		ImageURL  string  `json:"image_url"`
		Type      string  `json:"type"`
		Episodes  int     `json:"episodes"`
		StartDate string  `json:"start_date"`
		EndDate   string  `json:"end_date"`
		Members   int     `json:"members"`
		Score     float64 `json:"score"`
	} `json:"top"`
}
type TopManga struct {
	Top []struct {
		MalID     int     `json:"mal_id"`
		Rank      int     `json:"rank"`
		Title     string  `json:"title"`
		URL       string  `json:"url"`
		Type      string  `json:"type"`
		Volumes   int     `json:"volumes"`
		StartDate string  `json:"start_date"`
		EndDate   string  `json:"end_date"`
		Members   int     `json:"members"`
		Score     float64 `json:"score"`
		ImageURL  string  `json:"image_url"`
	} `json:"top"`
}
type TopPeople struct {
	Top []struct {
		MalID     int       `json:"mal_id"`
		Rank      int       `json:"rank"`
		Title     string    `json:"title"`
		URL       string    `json:"url"`
		NameKanji string    `json:"name_kanji"`
		Favorites int       `json:"favorites"`
		ImageURL  string    `json:"image_url"`
		Birthday  time.Time `json:"birthday"`
	} `json:"top"`
}
type TopCharacters struct {
	Top []struct {
		MalID        int       `json:"mal_id"`
		Rank         int       `json:"rank"`
		Title        string    `json:"title"`
		URL          string    `json:"url"`
		NameKanji    string    `json:"name_kanji"`
		Animeography []MalItem `json:"animeography"`
		Mangaography []MalItem `json:"mangaography"`
		Favorites    int       `json:"favorites"`
		ImageURL     string    `json:"image_url"`
	} `json:"top"`
}
func GetTopAnime(subType string, page int) (*TopAnime, error) {
	res := &TopAnime{}
	err := urlToStruct(fmt.Sprintf("/top/anime/%d/%s",
		page, url.QueryEscape(subType)), res)
	if err != nil {
		return nil, err
	}
	return res, nil
}