给go添加各种package

go version 1.1.2

  For example you need to install the webscoket pakeage

  try 
         go get code.google.com/p/go.net/websocket
  catch

         $GOPATH no set? 
              that you need set the GOPATH in the system environment variables and this path should in golang directory

         no Mercurial?

              download it

   now try go get ... again.

   find the file in your GOPATH and make it like golang original file structure  src->pkg->*  (pkg is added by myself)

  

posted @ 2013-09-26 12:57  x.radish  阅读(360)  评论(0编辑  收藏  举报