aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-09 11:48:55 -0700
committerjackyzha0 <[email protected]>2020-05-09 11:48:55 -0700
commit692f117d57d44935e8257aba4cd4b5f3a4a8f2b6 (patch)
tree2ac53443a255c1319e41ccb9194e14429416a8d5 /main.go
downloadctrl-v-692f117d57d44935e8257aba4cd4b5f3a4a8f2b6.tar.xz
ctrl-v-692f117d57d44935e8257aba4cd4b5f3a4a8f2b6.zip
initial files
Diffstat (limited to 'main.go')
-rw-r--r--main.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..0f9b7dd
--- /dev/null
+++ b/main.go
@@ -0,0 +1,21 @@
+package main
+
+import (
+ "log"
+ "os"
+
+ "github.com/joho/godotenv"
+)
+
+func main() {
+
+ // load .env file
+ err := godotenv.Load()
+ if err != nil {
+ log.Fatal("Error loading .env file")
+ }
+
+ mUser := os.Getenv("MONGO_USER")
+ mPass := os.Getenv("MONGO_PASS")
+
+}