(Golang) Go bindings for the Imgflip API.
To include this library in your Go project using modules, add the following import and run go mod tidy
.
import "github.com/Kardbord/imgflipgo"
Otherwise, you can run the following command.
go get github.com/Kardbord/imgflipgo
The code is fairly self-documenting (said every developer too lazy to write real docs). There are only two API endpoints.
- The
get_memes
endpoint (https://api.imgflip.com/get_memes) can be accessed viaimgflipgo.GetMemesWithResponse()
orimgflipgo.GetMemes()
. - The
caption_image
endpoint (https://api.imgflip.com/caption_image) can be accessed viaimgflipgo.CaptionImage(*CaptionRequest)
.
For a concrete example of how to use the library, check out example.go.