Can't run any go programs

agolangf · · 533 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Any time i try to run .go files the program does not run and I get hung up ( blinking cursor). I think I have set my environment path variables correctly any trouble shooting ideas -&gt; I am on windows </p> <hr/>**评论:**<br/><br/>lstokeworth: <pre><p>What is the specific command that hangs?</p></pre>alexwhoizzle: <pre><p>Do you have an antivirus installed? Avast maybe? If so try disabling the DeepScan feature in Avast and see if that fixes the problem. I had this problem a while back with Avast and would stop any Go program from running.</p></pre>justinisrael: <pre><p>I think I just recently read a similar discussion like that on golang-nuts that ended with avast being the culprit </p></pre>alexwhoizzle: <pre><p>Also, something else you might want to look into disabling a feature of Avast&#39;s WebShield called HTTPS Scanning. It is basically a local MitM proxy to check https websites for malware. Unfortunately it was blocking a few websites for an unknown reason (especially sites running on Caddy webserver). You can read more here: <a href="http://security.stackexchange.com/questions/73476/why-is-avast-web-mail-shield-root-listed-as-ca-for-google-com/73481#73481" rel="nofollow">http://security.stackexchange.com/questions/73476/why-is-avast-web-mail-shield-root-listed-as-ca-for-google-com/73481#73481</a></p> <p>EDIT: clarification</p></pre>Hougar: <pre><p>I will give this a shot tomorrow thanks everyone </p></pre>justinisrael: <pre><p>You refer to &#34;running .go files&#34;. I assume that means you are trying to do something like &#34;go run &lt;file.go&gt;&#34;? Have you tried simply building your binary, and then running that? There really shouldn&#39;t be anything for you to set in your environment, other than your GOPATH. </p></pre>IntellectualReserve: <pre><p>Are you including every dependant file as an argument? E.g.</p> <pre><code> go run main.go routes.go handlers.go </code></pre> <p>or on *nix with no test files and all package files in the same folder:</p> <pre><code> go run *.go </code></pre></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:701969077

533 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传