Fix README typo
This commit is contained in:
parent
1903bfe3e1
commit
f23ff3d03e
|
@ -15,18 +15,18 @@ import (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Retrieve manga information
|
// Retrieve manga information
|
||||||
manga, err := mangadex.GetManga(123)
|
manga, errManga := mangadex.GetManga(123)
|
||||||
if errManga != nil {
|
if errManga != nil {
|
||||||
log.Println("Error retrieving manga: %s", errManga)
|
log.Println("Error retrieving manga: %s", errManga)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve a list of chapters
|
// Retrieve a list of chapters
|
||||||
chaptersRequest := NewGetChaptersParams()
|
chaptersRequest := NewGetChaptersParams()
|
||||||
chapters, errChapterList = manga.getChapters(chaptersRequest)
|
chapters, errChapterList = manga.getChapters(chaptersRequest)
|
||||||
if errChapterList != nil {
|
if errChapterList != nil {
|
||||||
log.Println("Error retrieving chapters page %d: %s", chaptersRequest.Page, errChapterList)
|
log.Println("Error retrieving chapters page %d: %s", chaptersRequest.Page, errChapterList)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disables chache reads for requests beyond this point
|
// Disables chache reads for requests beyond this point
|
||||||
mangadex.DisableCache()
|
mangadex.DisableCache()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue