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

Method createSecond

container/container.go:217–224  ·  view source on GitHub ↗

createSecond creates and returns the second sub container of this container.

(opts []Option)

Source from the content-addressed store, hash-verified

215
216// createSecond creates and returns the second sub container of this container.
217func (c *Container) createSecond(opts []Option) error {
218 second, err := newChild(c, opts)
219 if err != nil {
220 return err
221 }
222 c.second = second
223 return nil
224}
225
226// Draw draws this container and all of its sub containers.
227func (c *Container) Draw() error {

Callers 2

SplitVerticalFunction · 0.80
SplitHorizontalFunction · 0.80

Calls 1

newChildFunction · 0.85

Tested by

no test coverage detected