Documentation
¶
Index ¶
- Constants
- func Alert(text, color string) template.HTML
- func Badge(text, color string) template.HTML
- func Button(text, onclick, color string) template.HTML
- func Card(title string, content template.HTML) template.HTML
- func CardWithAction(title string, actions, content template.HTML) template.HTML
- func FormatBytes(b uint64) string
- func FormatPercent(p float64) string
- func Grid(cols int, content template.HTML) template.HTML
- func JSONBlock(id string) template.HTML
- func Link(text, href, color string) template.HTML
- func ProgressBar(percent float64, color string) template.HTML
- func Render(data PageData) (string, error)
- func StatsCard(label, value, subtext string) template.HTML
- func TR(cells ...string) template.HTML
- func Table(headers []string) template.HTML
- func TableEnd() template.HTML
- type PageData
Constants ¶
View Source
const BaseTemplate = `` /* 3392-byte string literal not displayed */
BaseTemplate 基础 HTML 模板
Variables ¶
This section is empty.
Functions ¶
func CardWithAction ¶
CardWithAction 带操作按钮的卡片
Types ¶
Click to show internal directories.
Click to hide internal directories.