MCPcopy
hub / github.com/github/git-sizer / New

Function New

internal/pipe/pipeline.go:54–62  ·  view source on GitHub ↗

NewPipeline returns a Pipeline struct with all of the `options` applied.

(options ...Option)

Source from the content-addressed store, hash-verified

52// NewPipeline returns a Pipeline struct with all of the `options`
53// applied.
54func New(options ...Option) *Pipeline {
55 p := &Pipeline{}
56
57 for _, option := range options {
58 option(p)
59 }
60
61 return p
62}
63
64// Option is a type alias for Pipeline functional options.
65type Option func(*Pipeline)

Calls

no outgoing calls