From ae5492bbe9303d90776c8a772b348ec3b508dc2e Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Thu, 14 May 2020 14:47:09 +0800 Subject: [PATCH] 提交测试代码 --- src/HttpServer/logic/httpserver.go | 7 +++++-- src/HttpServer/main/main.go | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/HttpServer/logic/httpserver.go b/src/HttpServer/logic/httpserver.go index 4a09e8e..057435a 100644 --- a/src/HttpServer/logic/httpserver.go +++ b/src/HttpServer/logic/httpserver.go @@ -24,9 +24,12 @@ func StartHttpServe() { startServerHttpServe() } +type TestTes struct { + TestInt int +} //just for test -func Testsendhttp() { - +func (d *TestTes)Testsendhttp() { + d.TestInt = 99 } func CheckErr(err error) { diff --git a/src/HttpServer/main/main.go b/src/HttpServer/main/main.go index 6813739..89c5947 100644 --- a/src/HttpServer/main/main.go +++ b/src/HttpServer/main/main.go @@ -67,7 +67,10 @@ func main() { go logic.StartHttpServe() go logic.StartHttpTicker() //time.Sleep(time.Duration(2) * time.Second) - //logic.Testsendhttp() + test := new(logic.TestTes) + test.TestInt=3 + test.Testsendhttp() + logger.Info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Test =%v",test) select { -- libgit2 0.21.0