render

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatsRender

func StatsRender(w io.Writer, data StatsData) error

Types

type StatsData

type StatsData struct {
	Layout              string
	Theme               string
	CSS                 string
	Title               string
	TitleColor          string
	DarkTitleColor      string
	KeyColor            string
	DarkKeyColor        string
	ValueColor          string
	DarkValueColor      string
	IconColor           string
	DarkIconColor       string
	BackgroundColor     string
	DarkBackgroundColor string
	StrokeColor         string
	DarkStrokeColor     string
	Items               []StatsItem
}

type StatsItem

type StatsItem struct {
	Id       string
	IconData string
	Key      string
	Value    string
}

Jump to

Keyboard shortcuts

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