-
-
Save joho/e5ce5415f75feac3c7dedc8ea38611cb to your computer and use it in GitHub Desktop.
Mini test case for https://github.com/joho/godotenv/issues/52
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
| import _ "github.com/joho/godotenv/autoload" |
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" | |
| import "os" | |
| import _ "github.com/joho/godotenv/autoload" | |
| func main() { | |
| fmt.Println(os.Getenv("MAIL_SECRET")) // xTvDqw7 | |
| fmt.Println(os.Getenv("OTHER_SECRET")) // foo\ | |
| } |
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
| require "dotenv/load" | |
| puts ENV["MAIL_SECRET"] # => xTvDqw | |
| puts ENV["OTHER_SECRET"] # => foo$bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment