add makefile support
This commit is contained in:
		@ -64,6 +64,12 @@ func main() {
 | 
			
		||||
		"development",
 | 
			
		||||
		"Application environment {development|production}",
 | 
			
		||||
	)
 | 
			
		||||
	flag.StringVar(
 | 
			
		||||
		&cfg.db.dsn,
 | 
			
		||||
		"dsn",
 | 
			
		||||
		"root@tcp(localhost:6379)/widgets?parseTime=true&tls=false",
 | 
			
		||||
		"Application environment {development|production}",
 | 
			
		||||
	)
 | 
			
		||||
	flag.StringVar(&cfg.api, "api", "http://localhost:4001", "URL to api")
 | 
			
		||||
 | 
			
		||||
	flag.Parse()
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user