Skip to content

Commit

Permalink
Add API: Any(any func(x *BuilderX)) (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
sim-wangyan committed Jan 9, 2024
1 parent bcfbae2 commit 949b920
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builder_x.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ func (x *BuilderX) Sub(s string, sub func(sb *BuilderX)) *BuilderX {
return x
}

func (x *BuilderX) Any(any func(x *BuilderX)) *BuilderX {
any(x)
return x
}

func (x *BuilderX) And(sub func(cb *CondBuilder)) *BuilderX {
x.CondBuilder.And(sub)
return x
Expand Down

0 comments on commit 949b920

Please sign in to comment.