You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/03/08 09:27:05 UTC

[GitHub] [pulsar] Anonymitaet commented on a change in pull request #14555: [doc]Optimize the installation steps of the pulsar library of the Go client

Anonymitaet commented on a change in pull request #14555:
URL: https://github.com/apache/pulsar/pull/14555#discussion_r821475170



##########
File path: site2/docs/client-libraries-go.md
##########
@@ -16,7 +16,9 @@ You can use Pulsar [Go client](https://github.com/apache/pulsar-client-go) to cr
 
 ### Install go package
 
-You can install the `pulsar` library locally using `go get`.  
+You can get the `pulsar` library by using `go get` or use it with `go module`.  
+
+Download to local:

Review comment:
       ```suggestion
   Download Go client to your local environment:
   ```
   
   

##########
File path: site2/docs/client-libraries-go.md
##########
@@ -28,6 +30,20 @@ Once installed locally, you can import it into your project:
 import "github.com/apache/pulsar-client-go/pulsar"
 ```
 
+Use with go module:
+
+```bash
+$ mkdir test_dir && cd test_dir 
+```
+Write a sample script in 'test_dir' directory , such as ‘test_example.go’,and write ‘package main’ at the beginning of the file.

Review comment:
       ```suggestion
   Write a sample script in the `test_dir` directory (such as `test_example.go`) and write `package main` at the beginning of the file.
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org