Skip to content

Commit df93e7b

Browse files
committed
doc: add splitArgsAndOpt doc
1 parent 939b5fe commit df93e7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/entity/run/run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ func (e *DefExecuteContext) Tracef(msg string, a ...interface{}) {
8888
e.trace(fmt.Sprintf(msg, args...), ops...)
8989
}
9090

91+
// splitArgsAndOpt split args and opt, opt must be placed at the end of args
9192
func splitArgsAndOpt(a ...interface{}) ([]interface{}, []TraceOp) {
9293
optStartIndex := len(a)
9394
for i := len(a) - 1; i >= 0; i -= 1 {

0 commit comments

Comments
 (0)