v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-06-01 15:30:51 -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" "gtt/internal/color"
"os" "os"
"github.com/spf13/viper" config "github.com/spf13/viper"
) )
var ( var (
// settings // settings
config = viper.New()
style = color.NewStyle() style = color.NewStyle()
hideBelow bool hideBelow bool
// default config // default config