Skip to content

Commit

Permalink
Allow DieWidth to accept multiple funcs (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
scothis committed Aug 11, 2023
1 parent eb97628 commit b272eeb
Show file tree
Hide file tree
Showing 27 changed files with 2,140 additions and 715 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ type MyResourceDie interface {

// DieWith returns a new die after passing the current die to the callback
// function. The passed die is mutable.
DieWith(fn func(d *MyResourceDie)) *MyResourceDie
DieWith(fn ...func(d *MyResourceDie)) *MyResourceDie

// DeepCopy returns a new die with equivalent state. Useful for
// snapshotting a mutable die.
Expand Down
24 changes: 18 additions & 6 deletions apis/admission/v1/zz_generated.die.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 54 additions & 18 deletions apis/admissionregistration/v1/zz_generated.die.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b272eeb

Please sign in to comment.