upgrade to go 1.16 and add a banner

This commit is contained in:
hdt3213
2021-05-02 15:42:29 +08:00
parent f29298cc68
commit 12b17750b2
5 changed files with 14 additions and 3 deletions

View File

@@ -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"