title: How to install a go library from github without public key?
body: <p>I want to install the <a href="https://github.com/KangSpace/gqrcode" rel="nofollow noreferrer">gqrcode project</a> and get from that project the following installation instructions:</p>
  <pre><code>go get -u github.com/KangSpace/gqrcode
  </code></pre>
  <p>When performing this, I first got:</p>
  <pre><code>...
  
  fatal: could not read Username for 'https://github.com': terminal prompts disabled
  
  ...
  </code></pre>
  <p>After performing</p>
  <pre><code>git config --global --add url.&quot;git@github.com:&quot;.insteadOf &quot;https://github.com/&quot;
  </code></pre>
  <p>I get:</p>
  <pre><code>git@github.com: Permission denied (publickey).
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  package github.com/KangSpace/gqrcode: exit status 1
  </code></pre>
  <p>In other languages like python I can clone the library first (<code>git clone ....</code>) and afterwards install it.</p>
  <p>How can I perform something similar in go?</p>