Skip to content

lamecksilva/placeholder-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Placeholder Generator

A simple project to generate placeholder images written in Go.

Installation

Download with git clone and install dependencies

$ git clone git@github.com:lamecksilva/placeholder-gen.git
$ cd placeholder-gen
$ go mod download

I recommend running with Air package:

$ air

The server will start in port 8080

API Reference

Generate Placeholder

  GET /generate
Parameter Type Description
width number Required. Width of Image
heigth number Required. Heigth of Image
color string Background color
label string Label of image, placed in center
label-color string Color of label text

OBS: The default label color is contrast color of Background color, eg:

background color white -> label color black.

Authors

About

Placeholder generator in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages