Refactoring to use internal packages
This commit is contained in:
		
							
								
								
									
										15
									
								
								internal/config/config.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								internal/config/config.go
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,15 @@
 | 
			
		||||
package config
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"html/template"
 | 
			
		||||
 | 
			
		||||
	"github.com/alexedwards/scs/v2"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// AppConfig holds the application config
 | 
			
		||||
type AppConfig struct {
 | 
			
		||||
	TemplateCahce map[string]*template.Template
 | 
			
		||||
	UseCache      bool
 | 
			
		||||
	InProduction  bool
 | 
			
		||||
	Session       *scs.SessionManager
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user