You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
280 B
Go
20 lines
280 B
Go
2 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"docDemo/router"
|
||
|
"fmt"
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
app := gin.Default()
|
||
|
|
||
|
// 初始化路由
|
||
|
router.InitRouter(app.Group("/api"))
|
||
|
|
||
|
// 订阅消息
|
||
|
//go queues.NewQueuesConsumer().SubscribeGetReport()
|
||
|
|
||
|
app.Run(fmt.Sprintf(":8889"))
|
||
|
}
|