+
Skip to content
This repository was archived by the owner on Oct 7, 2021. It is now read-only.

bake/mangadex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MangaDex

GoDoc codecov

A Go client for the MangaDex API v2.

$ go get github.com/bake/mangadex/v2
func main() {
  md := mangadex.New()
  ctx := context.TODO()
  m, err := md.Manga(ctx, 23279, nil)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s by %s", m, m.Author[0])
  // Output: Wonder Cat Kyuu-chan by Nitori Sasami
}
func main() {
  md := mangadex.New()
  ctx := context.TODO()
  c, err := md.Chapter(ctx, 517244, nil)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s (Volume %s, Chapter %s)", c, c.Volume, c.Chapter)
  // Output: Cool Day (Volume 3, Chapter 253)
}

About

A Go client for the MangaDex API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载