svgRenderer

package
v0.0.0-...-85f45e4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgeParams

type BadgeParams struct {
	// Label - Label for the visitors.
	Label string
	// LabelBgColor - Background color for the visitors label area.
	LabelBgColor string
	// LabelColor - Color for the visitors label.
	LabelColor string
	// Count - Visitor count.
	Count uint64
	// CountBgColor - Background color for the count area.
	CountBgColor string
	// CountColor - Color for the count.
	CountColor string
}

BadgeParams - Parameters for rendering the badge.

type SvgRenderer

type SvgRenderer interface {
	// RenderBadge - Writes contents of the badge into the writer.
	RenderBadge(w io.Writer, params BadgeParams) error
}

SvgRenderer - Interface for rendering the badge as an SVG.

func NewSvgRenderer

func NewSvgRenderer() SvgRenderer

NewSvgRenderer - Constructs and returns a new SVG Renderer.

Jump to

Keyboard shortcuts

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