v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-28 05:20:12 -07:00

style: rename viper to config

viper already previde the variable. No need to New one.
This commit is contained in:
eeeXun 2023-01-27 20:30:24 +08:00
parent b27a7dc11b
commit 45b9c13c06

View File

@ -4,12 +4,11 @@ import (
"gtt/internal/color"
"os"
"github.com/spf13/viper"
config "github.com/spf13/viper"
)
var (
// settings
config = viper.New()
style = color.NewStyle()
hideBelow bool
// default config