badge

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2018 License: MIT Imports: 4 Imported by: 2

README

badge

svg badge generator

License

MIT © zcong1993

Documentation

Index

Constants

View Source
const (
	// DEFAULT is default style
	DEFAULT = iota + 1
	// FLAT is flat style
	FLAT
	// FOR THE BADGE
	FOR_THE_BADGE
)

Variables

This section is empty.

Functions

func Badgen

func Badgen(input Input) ([]byte, error)

Badgen is the api we expose

Types

type Input

type Input struct {
	Subject string
	Status  string
	Color   string
	Style   int
}

Input is Badgen input struct

type TplData

type TplData struct {
	Width       float64
	SbRectWidth float64
	Color       string
	SbTextWidth float64
	Subject     string
	Status      string
	StTextWidth float64
	StRectWidth float64
}

TplData is tpl data we use in template exec

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL