A simple Go client for waifu.pics — fetch random SFW/NSFW anime images effortlessly!
go get github.com/xeyossr/waifupicsgo@latest
import "github.com/xeyossr/waifupicsgo"
// SFW examples
img, _ := waifupicsgo.SFW.GetOne(waifupicsgo.SFWHug.String())
imgs, _ := waifupicsgo.SFW.GetMany(waifupicsgo.SFWHug.String())
// NSFW examples
img, _ := waifupicsgo.NSFW.GetOne(waifupicsgo.NSFWNeko.String())
imgs, _ := waifupicsgo.NSFW.GetMany(waifupicsgo.NSFWNeko.String())
Fetches a single random image from the given category.
Fetches multiple unique images from the given category.
-
SFW
: waifu, neko, shinobu, megumin, bully, cuddle, cry, hug, awooo, kiss, lick, pat, smug, bonk, yeet, blush, smile, wave, highfive, handhold, nom, bite, glomp, slap, kill, kick, happy, wink, poke, dance, cringe -
NSFW
: waifu, neko, trap, blowjob
Each category is defined as a typed constant and can be passed using .String()
.
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).