Last active
August 29, 2015 14:09
-
-
Save knsh14/e7ad75c1fd262288bc87 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% vim test.go [~] | |
% go run test.go [~] | |
Set $TEST_HOGE = 1234 | |
% echo $TEST_HOGE [~] | |
% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
fmt.Println("Set $TEST_HOGE = 1234") | |
os.Setenv("TEST_HOGE", "1234") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment