use const block here
This commit is contained in:
parent
ddce60a558
commit
ebc13c3be3
1 changed files with 4 additions and 2 deletions
6
main.go
6
main.go
|
@ -37,8 +37,10 @@ type UgoiraManifest struct {
|
|||
|
||||
type PostId uint64
|
||||
|
||||
const ArtworkUrlTemplate = "https://www.pixiv.net/en/artworks/%d"
|
||||
const ManifestUrlTemplate = "https://www.pixiv.net/ajax/illust/%d/ugoira_meta"
|
||||
const (
|
||||
ArtworkUrlTemplate = "https://www.pixiv.net/en/artworks/%d"
|
||||
ManifestUrlTemplate = "https://www.pixiv.net/ajax/illust/%d/ugoira_meta"
|
||||
)
|
||||
|
||||
func doPixivRequest(client *http.Client, url, referer, userAgent string) io.ReadCloser {
|
||||
req, err := http.NewRequest("GET", url, nil)
|
||||
|
|
Loading…
Add table
Reference in a new issue