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

Function newOptions

widgets/heatmap/options.go:50–58  ·  view source on GitHub ↗

newOptions returns a new options instance.

(opts ...Option)

Source from the content-addressed store, hash-verified

48
49// newOptions returns a new options instance.
50func newOptions(opts ...Option) *options {
51 opt := &options{
52 cellWidth: 3,
53 }
54 for _, o := range opts {
55 o.set(opt)
56 }
57 return opt
58}
59
60// option implements Option.
61type option func(*options)

Callers 1

NewFunction · 0.70

Calls 1

setMethod · 0.65

Tested by

no test coverage detected