Presenter tool does use properly 'run' the code. Any ideas why not ?

agolangf · · 470 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I installed the presenter tool (go get golang.org/x/tools/cmd/present) and downloaded a presentation (<a href="https://github.com/golang/talks/blob/master/2012/zen.slide" rel="nofollow">https://github.com/golang/talks/blob/master/2012/zen.slide</a>).</p> <p>If I run the presenter-tool and open this presentation in a browser, the slides show correctly. Including the &#39;run&#39;-button at the bottom of the examples.</p> <p>Problem: If I click the &#39;run&#39;-button for one of the examples there is no result shown ?! It only shows a black window with Run/Kill/Close, but no results. According to the docs on <a href="https://godoc.org/github.com/Go-zh/tools/cmd/present" rel="nofollow">https://godoc.org/github.com/Go-zh/tools/cmd/present</a> this button should work by default. Adding -play=true as param does not solve the problem (if =false the run-button is not shown at all).</p> <p>I searched for this problem but found no references this it. So it seems this normally just works. What do I do wrong ?</p> <hr/>**评论:**<br/><br/>mkboudreau: <pre><p>It&#39;s been a while, but if my memory serves me correctly, you may need to set the -orighost to match the external host/ip that the browser is using to access your presentation. I had to do this within my dockerized go present tool. (<a href="https://hub.docker.com/r/mkboudreau/go-present" rel="nofollow">https://hub.docker.com/r/mkboudreau/go-present</a>)</p></pre>1Gijs: <pre><p>Thank you ! This works:</p> <pre><code>present -orighost=&#34;localhost&#34; </code></pre></pre>1Gijs: <pre><p>Sorry for the unclear title :-( Seems not possible to edit it...</p></pre>

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

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