diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2022-10-26 01:04:51 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2022-10-26 01:04:51 +0300 |
| commit | 542c4cc1646339488f3bdc247a94b78484abc590 (patch) | |
| tree | 7a12af7a89941b3b5d4c3a657f0be4025427ff60 | |
| parent | models structure (diff) | |
| download | lphub-542c4cc1646339488f3bdc247a94b78484abc590.tar.gz lphub-542c4cc1646339488f3bdc247a94b78484abc590.tar.bz2 lphub-542c4cc1646339488f3bdc247a94b78484abc590.zip | |
delete funcs.go - not needed
| -rw-r--r-- | backend/controllers/funcs.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/backend/controllers/funcs.go b/backend/controllers/funcs.go deleted file mode 100644 index 6d0f854..0000000 --- a/backend/controllers/funcs.go +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | package controllers | ||
| 2 | |||
| 3 | import ( | ||
| 4 | "log" | ||
| 5 | "os" | ||
| 6 | |||
| 7 | "github.com/joho/godotenv" | ||
| 8 | ) | ||
| 9 | |||
| 10 | func GetEnvKey(key string) string { | ||
| 11 | err := godotenv.Load() | ||
| 12 | if err != nil { | ||
| 13 | log.Fatal("Error loading .env file") | ||
| 14 | } | ||
| 15 | return os.Getenv(key) | ||
| 16 | } | ||