Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to execute with custom environment variables #173

Closed
fly-studio opened this issue Aug 18, 2022 · 1 comment
Closed

how to execute with custom environment variables #173

fly-studio opened this issue Aug 18, 2022 · 1 comment

Comments

@fly-studio
Copy link

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

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

ctx := igop.NewContext(0)
ctx.Env = env
ctx.Run(....)
@visualfc
Copy link
Member

visualfc commented Aug 18, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants