badge

package
v0.0.0-...-4fa1d71 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadgeColor

func BadgeColor(color string) badgeSetter

func BadgeTitle

func BadgeTitle(title string) badgeSetter

Types

type Badge

type Badge struct {
	Total, Active int

	Lw, Rw, Tw int

	Color    string
	Sep, Pad int

	Title  string
	TitleX int

	Value  string
	ValueX int
}

func New

func New(total, active int, setters ...badgeSetter) *Badge

func (*Badge) Calculate

func (b *Badge) Calculate()

func (*Badge) String

func (b *Badge) String() string

Jump to

Keyboard shortcuts

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