badge

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorToHexRGB

func ColorToHexRGB(c color.Color) string

Types

type Badge

type Badge struct {
	Label        string
	Message      string
	LabelColor   string
	MessageColor string
	Icon         []byte
	// contains filtered or unexported fields
}

func New

func New(l, m string) *Badge

func (*Badge) AddIcon added in v0.27.0

func (b *Badge) AddIcon(imgf []byte) error

func (*Badge) AddIconFile added in v0.27.0

func (b *Badge) AddIconFile(f string) error

func (*Badge) Render

func (b *Badge) Render(wr io.Writer) error

Jump to

Keyboard shortcuts

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