|
|
package main
|
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
|
|
|
"github.com/beego/beego/v2/server/web"
|
|
|
_ "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/consumer"
|
|
|
)
|
|
|
|
|
|
func main() {
|
|
|
tree := web.PrintTree()
|
|
|
methods := tree["Data"].(web.M)
|
|
|
for k, v := range methods {
|
|
|
fmt.Printf("%s => %v \n", k, v)
|
|
|
}
|
|
|
// tree := web.PrintTree()
|
|
|
// methods := tree["Data"].(web.M)
|
|
|
// for k, v := range methods {
|
|
|
// fmt.Printf("%s => %v \n", k, v)
|
|
|
// }
|
|
|
go consumer.Run()
|
|
|
web.Run()
|
|
|
} |
...
|
...
|
|