feat: add builtin function environ/ENV

This commit is contained in:
debugtalk
2022-04-25 14:14:58 +08:00
parent caccf426e6
commit 9a0ffa9802
2 changed files with 10 additions and 0 deletions

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,
}