title: Setting up go-swagger for first time
body: <p>I am new to <code>go-lang</code> and so to <code>go-swagger</code>. I am following <a href="https://posener.github.io/go-swagger/" rel="noreferrer">a blog</a> and have installed <code>go-swagger</code>  with command :</p>
  
  <pre><code>go get -u github.com/go-swagger/go-swagger/cmd/swagger
  </code></pre>
  
  <p>I can see that the <code>go-swagger</code> folder is created in </p>
  
  <pre><code>C:\Go\bin\src\github.com\go-swagger
  </code></pre>
  
  <p>Now, I added my project path to <code>$GOPATH</code> :</p>
  
  <pre><code>echo %GOPATH%
  C:\Go\bin;D:\Personal\Learning\GoLang\Project-2;D:\Personal\Learning\GoLang\swagger;
  </code></pre>
  
  <p>When I run </p>
  
  <pre><code>D:\Personal\Learning\GoLang\swagger&gt;swagger ./swagger.yaml
  'swagger' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>What am I missing ? Also, I would be grateful if you can suggest me some good material for <code>go-swagger</code> as I am finding it very difficult to setup everything. There arent much blogs which can help me do <code>HELLO WORLD</code> kinda setup</p>
  
  <p>Thanks</p>
  
  <blockquote>
    <p>Update 1:</p>
  </blockquote>
  
  <p>I tried to set <code>GOBIN</code> but no luck with that:</p>
  
  <pre><code>D:\Personal\Learning\GoLang\swagger&gt;swagger validate https://raw.githubusercontent.com/swagger-api/swagger-spec/master/examples/v2.0/json/petstore-expanded.json
  'swagger' is not recognized as an internal or external command,
  operable program or batch file.
  
  D:\Personal\Learning\GoLang\swagger&gt;echo %GOBIN%
  C:\Go\bin\;
  
  </code></pre>
  
  <blockquote>
    <p>Update 2:</p>
  </blockquote>
  
  <p>I tried absolute path as suggested as well, but no luck:</p>
  
  <pre><code>D:\Personal\Learning\GoLang\swagger&gt;C:\Go\bin\swagger validate https://raw.githubusercontent.com/swagger-api/swagger-spec/master/examples/v2.0/json/petstore-expanded.json
  'C:\Go\bin\swagger' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <blockquote>
    <p>Update 3:</p>
  </blockquote>
  
  <p>Below command worked for me but it doesn't seem to be proper way:</p>
  
  <pre><code>go run C:\Go\bin\src\github.com\go-swagger\go-swagger\cmd\swagger\swagger.go  validate https://raw.githubusercontent.com/swagger-api/swagger-spec/master/examples/v2.0/json/petstore-expanded.json
  </code></pre>