goplus / igop

The Go/Go+ Interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to execute with custom environment variables

fly-studio opened this issue · comments

like exec/cmd cmd := exec.CommandContext(...) cmd.Env = ....

env := map[string]string{"X": "Y"}

ctx := igop.NewContext(0)
ctx.Env = env
ctx.Run(....)

ctx.Context run use build golang os and arch, if load form souce, maybe use current install golang.
no environment required