Created
July 15, 2024 17:44
-
-
Save BK1031/d3eb383f8b4684c40354e545625e9641 to your computer and use it in GitHub Desktop.
singlestore-go-bookstore config/config.go
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 config | |
import "os" | |
var Port = "8080" | |
var Database = struct { | |
Host string | |
Port string | |
Username string | |
Password string | |
Database string | |
}{ | |
Host: os.Getenv("DB_HOST"), | |
Port: os.Getenv("DB_PORT"), | |
Username: os.Getenv("DB_USERNAME"), | |
Password: os.Getenv("DB_PASSWORD"), | |
Database: os.Getenv("DB_DATABASE"), | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment