mirror of
https://github.com/shirou/mqttcli.git
synced 2025-04-26 13:49:17 +08:00
rename initFunc to just a init().
This commit is contained in:
parent
ff7b2758d6
commit
d0c6d2d05d
4
main.go
4
main.go
@ -18,7 +18,7 @@ Usage here
|
||||
|
||||
var version string
|
||||
|
||||
func initFunc() {
|
||||
func init() {
|
||||
log.SetLevel(log.WarnLevel)
|
||||
log.SetOutput(colorable.NewColorableStdout())
|
||||
}
|
||||
@ -101,8 +101,6 @@ func pubsub(c *cli.Context) {
|
||||
}
|
||||
|
||||
func main() {
|
||||
initFunc()
|
||||
|
||||
app := cli.NewApp()
|
||||
app.Name = "mqttcli"
|
||||
app.Usage = usage
|
||||
|
Loading…
x
Reference in New Issue
Block a user