Closed Aoshee closed 6 years ago
Which is the version of beego
in your system?
I using stable v1.10.0 and v1.9.2, same error.
It is weird. When you go build
the web module, golang will use the source of third-party package in vendor
, like https://github.com/ysrc/yulong-hids/tree/master/web/vendor/github.com/astaxie/beego.
Yep. How to fix error??
Print working directory of yulong. Is that in {gopath}/src?
Hello, I compile succes, but execute is error:
`./web flag redefined: graceful panic: ./web flag redefined: graceful
goroutine 1 [running]: flag.(*FlagSet).Var(0xc420068120, 0xae4860, 0xdf1c91, 0xa6e982, 0x8, 0xa7ff73, 0x21) /usr/local/go/src/flag/flag.go:810 +0x540 flag.BoolVar(0xdf1c91, 0xa6e982, 0x8, 0xc420190200, 0xa7ff73, 0x21) /usr/local/go/src/flag/flag.go:589 +0x72 github.com/astaxie/beego/grace.init.0() /home/exam/src/github.com/astaxie/beego/grace/grace.go:93 +0x60`