docs: wording [ci skip]
This commit is contained in:
parent
ff1c043ec5
commit
497ecf476a
@ -11,13 +11,13 @@ type Config struct {
|
|||||||
EnsureRecipeLatest bool // ensure the local recipe has latest changes
|
EnsureRecipeLatest bool // ensure the local recipe has latest changes
|
||||||
}
|
}
|
||||||
|
|
||||||
// Option modified a Config. The convetion for passing Options to functions is
|
// Option modifies a Config. The convention for passing an Option to a function
|
||||||
// so far, only used in internal/validate.go. A Config is then constructed and
|
// is so far, only used in internal/validate.go. A Config is then constructed
|
||||||
// passed down further into the code. This may change in the future but this is
|
// and passed down further into the code. This may change in the future but
|
||||||
// at least the abstraction so far.
|
// this is at least the abstraction so far.
|
||||||
type Option func(c *Config)
|
type Option func(c *Config)
|
||||||
|
|
||||||
// New instantiates a new Config.
|
// New instantiates a Config.
|
||||||
func New(opts ...Option) *Config {
|
func New(opts ...Option) *Config {
|
||||||
conf := &Config{
|
conf := &Config{
|
||||||
EnsureRecipeExists: true,
|
EnsureRecipeExists: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user