-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace string literal env var keys with static consts
- Loading branch information
1 parent
40c3d05
commit e69437f
Showing
3 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package config | ||
|
||
// Constant keys representing environment variables to avoid mismatch | ||
const ( | ||
DB_PASSWORD string = "DB_PASSWORD" | ||
DB_USER string = "DB_USER" | ||
DB_NAME string = "DB_NAME" | ||
JWT_SECRET string = "JWT_SECRET" | ||
PORT string = "PORT" | ||
TEST_DB_CONN_STRING string = "TEST_DB_CONN_STRING" | ||
CI string = "CI" | ||
TEST_DB_NAME string = "TEST_DB_NAME" | ||
ENV string = "ENV" | ||
) |
This file contains 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
This file contains 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