mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-04 23:39:33 +08:00
feat: call function with two argument
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"math"
|
||||
"math/rand"
|
||||
"time"
|
||||
)
|
||||
|
||||
var Functions = map[string]interface{}{
|
||||
"sleep": sleep,
|
||||
"gen_random_string": genRandomString,
|
||||
"sleep": sleep, // call with one argument
|
||||
"gen_random_string": genRandomString, // call with one argument
|
||||
"max": math.Max, // call with two arguments
|
||||
}
|
||||
|
||||
func sleep(nSecs int) {
|
||||
|
||||
Reference in New Issue
Block a user