15 lines
327 B
Go
15 lines
327 B
Go
package command
|
|||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/spf13/viper"
|
||
|
|
)
|
||
|
|
|
||
|
|
// init defined the default options for viper.
|
||
|
|
func init() {
|
||
|
|
viper.SetDefault("debug.addr", "0.0.0.0:8290")
|
||
|
|
viper.SetDefault("debug.token", "")
|
||
|
|
viper.SetDefault("debug.pprof", false)
|
||
|
|
|
||
|
|
viper.SetDefault("http.addr", "0.0.0.0:8280")
|
||
|
|
viper.SetDefault("http.root", "/")
|
||
|
|
}
|