MCPcopy
hub / github.com/mum4k/termdash / New

Function New

widgets/heatmap/heatmap.go:71–79  ·  view source on GitHub ↗

New returns a new HeatMap widget.

(opts ...Option)

Source from the content-addressed store, hash-verified

69
70// New returns a new HeatMap widget.
71func New(opts ...Option) (*HeatMap, error) {
72 opt := newOptions(opts...)
73 if err := opt.validate(); err != nil {
74 return nil, err
75 }
76 return &HeatMap{
77 opts: opt,
78 }, nil
79}
80
81// Values sets the values to be displayed by the HeatMap.
82//

Callers 10

newVisualizeTabFunction · 0.92
newExplorerWidgetsFunction · 0.92
mainFunction · 0.92
newTelemetryTabsFunction · 0.92
TestNewAndValuesFunction · 0.70

Calls 2

newOptionsFunction · 0.70
validateMethod · 0.45