INNER CODE UNIT · Go

getEnvironment

sy-vendor/Gobi · config/config.go:620

func getEnvironment() string {
	env := os.Getenv("GOBI_ENV")
	if env == "" {
		env = "default"
	}
	return env
}

func getConfigPath() string {
	configPath := os.Getenv("GOBI_CONFIG_PATH")
	if configPath == "" {
		configPath = "./config"
	}
	return configPath
}

func isValidDatabaseType(dbType string) bool {
	validTypes := []string{"sqlite", "mysql", "postgres"}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…