hitoko

package
v0.0.0-...-e7acbab Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TYPE_ANIME    = "a"
	TYPE_COMIC    = "b"
	TYPE_GAME     = "c"
	TYPE_NOVEL    = "d"
	TYPE_INTERNET = "f"
	TYPE_OTHER    = "g"
	TYPE_RANDOM   = "r"
)
View Source
const HITOKO_URL = "https://v1.hitokoto.cn/?"

Variables

This section is empty.

Functions

This section is empty.

Types

type HitokoResponse

type HitokoResponse struct {
	ID       int    `json:"id"`
	Hitokoto string `json:"hitokoto"`
	From     string `json:"from"`
}

func Fortune

func Fortune(category string) (r HitokoResponse, err error)

Jump to

Keyboard shortcuts

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