anilistWrapGO

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

README

anilistWrapGo

Unofficial Anilist.co GraphQL API wrapper for GoLang.

Examples

All examples are present as tests in test directory.

Below are a few snippets from there :3

User
   usernameResult, err := anilistWrapGO.GetUserByUsername("mimiee") // this person is a thot
   if err != nil {
   log.Fatal(err.Error())
   }
   log.Println(*usernameResult.Data.User.Name)
Anime
   searchResult, err := anilistWrapGO.SearchAnime("kanojo mo kanojo") // stupid anime
   if err != nil {
   log.Fatal(err.Error())
   }
   log.Println(searchResult.Data.Media.Title)
Media
   searchData, err := anilistWrapGO.SearchMedia("higehiro") // thot anime
   if err != nil {
   log.Fatal(err.Error())
   }
   log.Println(searchData.Data.Media.Title.Native)
Character
   searchResult, err := anilistWrapGO.SearchCharacter("Rin Tohsaka") // goddess
   if err != nil {
   log.Fatal(err.Error())
   }

   log.Println(searchResult.Data.Character.Name.Native)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL