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/04 02:55:21 UTC

[GitHub] [pulsar] zhaoyajun2009 opened a new pull request #14549: [doc]Optimize the installation steps of the pulsar library of the go client

zhaoyajun2009 opened a new pull request #14549:
URL: https://github.com/apache/pulsar/pull/14549


   ### Motivation
   Optimize the installation steps of the pulsar library of the go client
   
   ### Modifications
   "
   ### Install go package
   
   You can install the `pulsar` library locally using `go get` download locally or downloading online.  
   
   download locally:
   
   ```bash
   $ go get -u "github.com/apache/pulsar-client-go/pulsar"
   ```
   If you can't download,please try it by configure [CDN accelerated proxy]( https://learnku.com/go/wikis/38122).
   
   Once installed locally, you can import it into your project:
   
   ```go 
   import "github.com/apache/pulsar-client-go/pulsar"
   ```
   
   download online(for example):
   ```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.
   
   ```bash
   $ go mod init test_dir 
   $ go mod tidy && go mod download
   $ go build test_example.go
   $ ./test_example
   ```
   "
   
   
   ### Documentation
   
   
   - [x] `doc` 
     
     (If this PR contains doc changes)
   
   
   


-- 
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



[GitHub] [pulsar] zhaoyajun2009 closed pull request #14549: [doc]Optimize the installation steps of the pulsar library of the go client

Posted by GitBox <gi...@apache.org>.
zhaoyajun2009 closed pull request #14549:
URL: https://github.com/apache/pulsar/pull/14549


   


-- 
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