Home

Awesome

goplaceholder

a small golang lib to generate placeholder images.

Usage

get it

$ go get github.com/michiwend/goplaceholder

simple example

placeholder, err := goplaceholder.Placeholder(
    "Lorem ipsum!",
    "/usr/share/fonts/TTF/DejaVuSans-Bold.ttf",
    color.RGBA{150, 150, 150, 255},
    color.RGBA{204, 204, 204, 255},
    400, 200)

results in

example placeholder

Webservice

You can try it as a web service at placeholder.michiwend.com.

The following requests are allowed: