Commit ae5492bbe9303d90776c8a772b348ec3b508dc2e

Authored by 陆恒
1 parent c24f88f2
Exists in master

提交测试代码

src/HttpServer/logic/httpserver.go
... ... @@ -24,9 +24,12 @@ func StartHttpServe() {
24 24 startServerHttpServe()
25 25 }
26 26  
  27 +type TestTes struct {
  28 + TestInt int
  29 +}
27 30 //just for test
28   -func Testsendhttp() {
29   -
  31 +func (d *TestTes)Testsendhttp() {
  32 + d.TestInt = 99
30 33 }
31 34  
32 35 func CheckErr(err error) {
... ...
src/HttpServer/main/main.go
... ... @@ -67,7 +67,10 @@ func main() {
67 67 go logic.StartHttpServe()
68 68 go logic.StartHttpTicker()
69 69 //time.Sleep(time.Duration(2) * time.Second)
70   - //logic.Testsendhttp()
  70 + test := new(logic.TestTes)
  71 + test.TestInt=3
  72 + test.Testsendhttp()
  73 + logger.Info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Test =%v",test)
71 74  
72 75  
73 76 select {
... ...