badge

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package badge provides function(s) for creating SVG badges.

Badge designs are based on Shields.IO's specification found in https://github.com/badges/shields/blob/master/spec/SPECIFICATION.md

Index

Constants

View Source
const (
	BadgeStyleClassic   = "classic"
	BadgeStyleFlat      = "flat"
	BadgeStylePlastic   = "plastic"
	BadgeStyleSemaphore = "semaphore"
)

Supported badge styles

Variables

This section is empty.

Functions

func GenerateSVG

func GenerateSVG(style, subject, status, color string) (string, error)

GenerateSVG returns a string representation of the generated SVG badge

Types

This section is empty.

Jump to

Keyboard shortcuts

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