// ConfigMiddleware allows to use viper configuration parameters set in .env files
ConfigMiddleware allows to use viper configuration parameters set in .env files
// ConfigMiddleware allows to use viper configuration parameters set in . env files
func ConfigMiddleware(viper *viper.Viper) gin.HandlerFunc {
	return func(c *gin.Context) {
		config.ToContext(c, config.New(viper))
		c.Next()
	}
}
func ConfigMiddleware ( viper * viper . Viper ) gin . HandlerFunc { return func ( c * gin . Context ) { config . ToContext ( c , config . New ( viper ) ) c . Next ( ) } }
ConfigMiddleware allows to use viper configuration parameters set in .env files
ConfigMiddleware allows to use viper configuration parameters set in . env files