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.
Click to show internal directories.
Click to hide internal directories.