作者 Your Name

日常保存

正在显示 1 个修改的文件 包含 5 行增加7 行删除
1 package main 1 package main
2 2
3 import ( 3 import (
4 - "fmt"  
5 -  
6 "github.com/beego/beego/v2/server/web" 4 "github.com/beego/beego/v2/server/web"
7 _ "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego" 5 _ "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego"
8 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/consumer" 6 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/consumer"
9 ) 7 )
10 8
11 func main() { 9 func main() {
12 - tree := web.PrintTree()  
13 - methods := tree["Data"].(web.M)  
14 - for k, v := range methods {  
15 - fmt.Printf("%s => %v \n", k, v)  
16 - } 10 + // tree := web.PrintTree()
  11 + // methods := tree["Data"].(web.M)
  12 + // for k, v := range methods {
  13 + // fmt.Printf("%s => %v \n", k, v)
  14 + // }
17 go consumer.Run() 15 go consumer.Run()
18 web.Run() 16 web.Run()
19 } 17 }