README ¶ gotracemoe gotracemoe 是 golang 编写的 trace.moe API Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Constants type Anilist type Anime type Moe func NewMoe(token string) *Moe func (m *Moe) Me() ([]byte, error) func (m *Moe) Search(path string, cutBlackBorders bool, includeAnilistInfo bool) (*Result, error) type Result type Title Constants ¶ View Source const ( BASE = "https://api.trace.moe" ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Anilist ¶ type Anilist struct { Id int `json:"id"` IdMal int `json:"idMal"` Title Title `json:"title"` Synonyms []string `json:"synonyms"` IsAdult bool `json:"isAdult"` } type Anime ¶ type Anime struct { Anilist Anilist `json:"anilist"` Filename string `json:"filename"` Episode int `json:"episode"` From float32 `json:"from"` To float32 `json:"to"` Similarity float64 `json:"similarity"` Video string `json:"video"` Image string `json:"image"` } type Moe ¶ type Moe struct { // contains filtered or unexported fields } func NewMoe ¶ func NewMoe(token string) *Moe func (*Moe) Me ¶ func (m *Moe) Me() ([]byte, error) func (*Moe) Search ¶ func (m *Moe) Search(path string, cutBlackBorders bool, includeAnilistInfo bool) (*Result, error) type Result ¶ type Result struct { FrameCount int `json:"frameCount"` Error string `json:"error"` Result []Anime `json:"result"` } type Title ¶ type Title struct { Native string `json:"native"` Romaji string `json:"romaji"` English string `json:"english"` } Source Files ¶ View all Source files moe.go result.go Click to show internal directories. Click to hide internal directories.