Documentation
¶
Overview ¶
Package helper contains useful helper functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BarChart ¶
func BarChart(v []ChartValue, id, label string) template.HTML
BarChart returns a save HTML fragment of the data as a bar chart. User must embed chart.js.
func EncodePassword ¶
EncodePassword encodes the password as a secure hash. It is not consistent across restarts.
Types ¶
type ChartValue ¶
ChartValue represents a single data point in a chart.
Click to show internal directories.
Click to hide internal directories.