wenfengwang commented on a change in pull request #2: Make code be consistent 
with Golang Specfication
URL: https://github.com/apache/rocketmq-client-go/pull/2#discussion_r234648107
 
 

 ##########
 File path: examples/push_consumer.go
 ##########
 @@ -14,17 +14,32 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-package client_test
+
+package main
 
 import (
-    "fmt"
-    "testing"
-    "../client"
+       "fmt"
+       "github.com/apache/rocketmq-client-go/core"
+       "time"
 )
 
-func TestGetMessageTopic(test *testing.T){
-    fmt.Println("-----TestGetMessageTopic Start----")
-    msg := client.CreateMessage("testTopic")
-    client.DestroyMessage(msg)
-    fmt.Println("-----TestGetMessageTopic Finish----")
+func main() {
 
 Review comment:
   set main() for each example so that provide convenience for user to run code.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to