title: go program throwing error cannot find package "code.google.com/p/go.net/websocket"
body: <p>I am new to Go programming language. Below is my code.</p>
  
  <pre><code>package main
  
  import (
      "code.google.com/p/go.net/websocket"
      "fmt"
      "net/http"
      "strconv"
  )
  
  var add := "12345"
  
  func EchoLengthServer(ws *webscoket.Conn) {
      var msg string
  
      for {
          websocket.Message.Receive(ws, &amp;msg)
          fmt.Println("Got Message", msg)
          length := len(msg)
          if err := websocket.Message.Send(ws, strconv.FormatInt(int64(length), 10)); err != nil {
              fmt.Println("can't send message length")
              break
          }
      }
  }
  
  func websocketListen() {
      http.Handle("/length", websocket.Handler(EchoLengthServer))
      err := http.ListenAndServe(addr, nil)
      if err != nil {
          panic("ListenAndServe:" + err.Error())
      }
  }
  </code></pre>
  
  <p>when I executed  the code i got below error </p>
  
  <pre><code>[rajkumar@localhost ch4-DesigningAPI]$ go run WebSockets.go 
  WebSockets.go:6:3: cannot find package "code.google.com/p/go.net/websocket" in any of:
      /usr/local/go/src/code.google.com/p/go.net/websocket (from $GOROOT)
      /home/rajkumar/GOPackages/src/code.google.com/p/go.net/websocket (from $GOPATH)
  </code></pre>
  
  <p>I tried to add websocket package in GOPATH by go get command but that is also throwing below error</p>
  
  <pre><code>[rajkumar@localhost ch4-DesigningAPI]$ go get code.google.com/p/go.net/websocket
  go: missing Mercurial command. See http://golang.org/s/gogetcmd
  package code.google.com/p/go.net/websocket: exec: "hg": executable file not found in $PATH
  </code></pre>
  
  <p>Could you please help me in resolving this error.</p>