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

Function applyOptions

container/options.go:33–40  ·  view source on GitHub ↗

applyOptions applies the options to the container and validates them.

(c *Container, opts ...Option)

Source from the content-addressed store, hash-verified

31
32// applyOptions applies the options to the container and validates them.
33func applyOptions(c *Container, opts ...Option) error {
34 for _, opt := range opts {
35 if err := opt.set(c); err != nil {
36 return err
37 }
38 }
39 return nil
40}
41
42// ensure all the container identifiers are either empty or unique.
43func validateIds(c *Container, seen map[string]bool) error {

Callers 3

NewFunction · 0.85
newChildFunction · 0.85
UpdateMethod · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected