Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KonachanInfo ¶
type KonachanInfo danbooruBase
KonachanInfo describes the details of a post on konachan.com.
func Konachan ¶
func Konachan(id string) (KonachanInfo, error)
Konachan returns the parsed details of a Konachan.com post.
type PixivInfo ¶
type PixivInfo struct {
// Title is illustration title.
Title string `json:"title"`
// ID is illustration ID. It comes from url query value of "illust_id".
ID string `json:"id"`
// Description is the description texts from illustration page.
Description string `json:"description"`
// Tags is the array of tags that illustration has.
Tags []string `json:"tags"`
// CreatedAt is unix timestamp of the illustration creation date time.
CreatedAt int64 `json:"created_at"`
// Sources is urls of pictures uploaded under the illustration.
// It is an array because a illustration page may contain multiple pictures.
Sources []string `json:"sources"`
// Author is the author of the illustration.
Author PixivMember `json:"author"`
}
PixivInfo describes the details of a Pixiv illustration work.
type PixivMember ¶
type PixivMember struct {
// ID is the Pixiv member ID.
ID string `json:"id"`
// Name is the Pixiv member name.
Name string `json:"name"`
// Avatar is url of the Pixiv member avatar.
Avatar string `json:"avatar"`
}
PixivMember describes the details of a Pixiv member (author).
Click to show internal directories.
Click to hide internal directories.