func howToStart(c *bm.Context) {
k := &model.Kratos{
Hello: "Golang 大法好 !!!" + fmt.Sprint(time.Now()),
}
c.JSON(k, nil)
go func() {
for i := 0; i < 1024*1024; i++ {
time.Sleep(1000 * 10)
fmt.Println("123")
fmt.Println(i)
}
}()
}
func howToStart(c *bm.Context) {
k := &model.Kratos{
Hello: "Golang 大法好 !!!" + fmt.Sprint(time.Now()),
}
c.JSON(k, nil)
go func() {
for i := 0; i < 1024*1024; i++ {
time.Sleep(1000 * 10)
fmt.Println("123")
fmt.Println(i)
}
}()
}