mirror of
				https://github.com/HDT3213/godis.git
				synced 2025-10-31 03:56:22 +08:00 
			
		
		
		
	upgrade to go 1.16 and add a banner
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| package main | ||||
|  | ||||
| import ( | ||||
| 	_ "embed" | ||||
| 	"fmt" | ||||
| 	"github.com/hdt3213/godis/config" | ||||
| 	"github.com/hdt3213/godis/lib/logger" | ||||
| @@ -9,7 +10,11 @@ import ( | ||||
| 	"os" | ||||
| ) | ||||
|  | ||||
| //go:embed banner.txt | ||||
| var banner string | ||||
|  | ||||
| func main() { | ||||
| 	print(banner) | ||||
| 	configFilename := os.Getenv("CONFIG") | ||||
| 	if configFilename == "" { | ||||
| 		configFilename = "redis.conf" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hdt3213
					hdt3213