bee run : panic: ./xxxx flag redefined: graceful

goroutine 1 [running]:
flag.(*FlagSet).Var(0xc420064180, 0x1c3ba40, 0x1c9f87c, 0x184b882, 0x8, 0x185e8b7, 0x21)
    /usr/local/go/src/flag/flag.go:793 +0x5e1
flag.BoolVar(0x1c9f87c, 0x184b882, 0x8, 0x1c9fb00, 0x185e8b7, 0x21)
    /usr/local/go/src/flag/flag.go:572 +0x72
github.com/astaxie/beego/grace.init.0()
    /usr/local/mygo/src/github.com/astaxie/beego/grace/grace.go:93 +0x60
github.com/astaxie/beego/grace.init()
    <autogenerated>:1 +0x89
github.com/astaxie/beego.init()
    <autogenerated>:1 +0x73
lutai/mysqlUtility.init()
    <autogenerated>:1 +0x5d
main.init()
    <autogenerated>:1 +0x44

bee run 启动 panic ,没有搜到相关问题,来问一下。

已邀请:

yoghurtjia

赞同来自:

你好,我也遇到相同的错误,请问你是怎么解决的?

astaxie - 创造、获取、分享、传播和应用Go

赞同来自:

flag redefined

lichao2018

赞同来自:

启动可执行程序xxxx时 命令行参数-graceful 出现了多次

要回复问题请先登录注册