feat: add builtin function environ/ENV

This commit is contained in:
debugtalk
2022-04-25 14:14:58 +08:00
parent 372cac78ab
commit 7fcba33b97
2 changed files with 10 additions and 0 deletions

View File

@@ -1,5 +1,12 @@
# Release History
## v4.0.0-beta2 (2022-04-25)
**go version**
- feat: add builtin function `environ`/`ENV`
- fix: demo function compatibility
## v4.0.0-beta (2022-04-24)
- refactor: merge [hrp] into httprunner v4, which will include golang and python dual engine

View File

@@ -5,6 +5,7 @@ import (
"encoding/hex"
"math"
"math/rand"
"os"
"time"
)
@@ -16,6 +17,8 @@ var Functions = map[string]interface{}{
"md5": MD5, // call with one argument
"parameterize": loadFromCSV,
"P": loadFromCSV,
"environ": os.Getenv,
"ENV": os.Getenv,
"load_ws_message": loadMessage,
}