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

Function newWriteOptions

widgets/text/write_options.go:36–44  ·  view source on GitHub ↗

newWriteOptions returns new writeOptions instance.

(wOpts ...WriteOption)

Source from the content-addressed store, hash-verified

34
35// newWriteOptions returns new writeOptions instance.
36func newWriteOptions(wOpts ...WriteOption) *writeOptions {
37 wo := &writeOptions{
38 cellOpts: cell.NewOptions(),
39 }
40 for _, o := range wOpts {
41 o.set(wo)
42 }
43 return wo
44}
45
46// writeOption implements WriteOption.
47type writeOption func(*writeOptions)

Callers 1

WriteMethod · 0.70

Calls 2

NewOptionsFunction · 0.92
setMethod · 0.65

Tested by

no test coverage detected