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

Function NewOptions

cell/cell.go:43–49  ·  view source on GitHub ↗

NewOptions returns a new Options instance after applying the provided options.

(opts ...Option)

Source from the content-addressed store, hash-verified

41
42// NewOptions returns a new Options instance after applying the provided options.
43func NewOptions(opts ...Option) *Options {
44 o := &Options{}
45 for _, opt := range opts {
46 opt.Set(o)
47 }
48 return o
49}
50
51// option implements Option.
52type option func(*Options)

Callers 15

ClearMethod · 0.92
SetCellMethod · 0.92
ClearMethod · 0.92
SetCellMethod · 0.92
TestCellFunction · 0.92
TestSetCellFunction · 0.92
NewCellFunction · 0.92
CopyMethod · 0.92
TestInactiveBorderStyleFunction · 0.92
newWriteOptionsFunction · 0.92
WriteCellOptsFunction · 0.92

Calls 1

SetMethod · 0.65

Tested by 7

TestCellFunction · 0.74
TestSetCellFunction · 0.74
TestInactiveBorderStyleFunction · 0.74
TestNewOptionsFunction · 0.56