Go library to access the Derpibooru API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dtluna 3b61cbacb0 Implement search 2 months ago
.gitignore Initial commit 2 months ago
LICENSE Initial commit 2 months ago
README.md Implement search 2 months ago
constants.go Implement search 2 months ago
go.mod Implement search 2 months ago
go.sum Implement search 2 months ago
images.go Implement search 2 months ago

README.md

go-derpibooru

GoDoc

Go library to access the Derpibooru-compatible API

Quickstart

package main

import (
	"fmt"
	"log"

	"git.dtluna.net/dtluna/go-derpibooru"
)

func main() {
	params := derpibooru.SearchImagesParams{
		Query: []string{
			"dress",
			"AND",
			"princess luna",
		},
		PerPage: 1,
	}
	resp, err := derpibooru.SearchImages(
		derpibooru.DerpibooruOrgRootURL,
		params,
	)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", resp.Images)
}