TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Go 1.8 Release Candidate 1 is released

229 pointsby pythonistover 8 years ago

11 comments

nishsover 8 years ago
&gt; The GOPATH environment variable now has a default value if it is unset. It defaults to $HOME&#x2F;go on Unix and %USERPROFILE%&#x2F;go on Windows. [0]<p>Finally. This is going to make it easier for newcomers to the Go ecosystem, since commands such as &quot;go get&quot; will now work out of the box.<p>[0] <a href="https:&#x2F;&#x2F;beta.golang.org&#x2F;doc&#x2F;go1.8#gopath" rel="nofollow">https:&#x2F;&#x2F;beta.golang.org&#x2F;doc&#x2F;go1.8#gopath</a>
评论 #13370166 未加载
评论 #13369222 未加载
评论 #13369169 未加载
评论 #13369705 未加载
评论 #13371061 未加载
评论 #13373605 未加载
评论 #13371782 未加载
travisbyover 8 years ago
What a blockbuster release (candidate). Congrats golang team!<p>I can&#x27;t wait to start adding in the mutex contention to our tests, remove our custom graceful http shutdown library, compile 15% faster, start using context within our queries, write custom comparators [I needed this just last week! We had a type that already implemented the sort interface, but I needed to sort it by a different key in this one-off] for sorting, and have a much better time debugging JSON unmarshalling.<p>And those were just the big pieces I noticed that will be an immediate improvement!
评论 #13370204 未加载
评论 #13373251 未加载
sentientalover 8 years ago
One thing that might snag web applications built with Go 1.8 is the change to the html&#x2F;template library. If you ever need to include script templates in your HTML for usage by a Javascript template framework (in my case it was EJS), then you will need to be aware that html entities will be escaped in a way they were not in 1.7<p>Given the following literal:<p>&lt;script type=&quot;text&#x2F;javascript&quot;&gt; &lt;div&gt;&lt;%= something %&gt;&lt;&#x2F;div&gt; &lt;&#x2F;script&gt;<p>Go 1.8 will escape the EJS delimiter, breaking the template. I.e.:<p>&lt;script type=&quot;text&#x2F;javascript&quot;&gt; &lt;div&gt;&amp;lt;%= something %&gt;&lt;&#x2F;div&gt; &lt;&#x2F;script&gt;<p>I selected EJS specifically because I wanted a templating library that didn&#x27;t conflict with html&#x2F;template&#x27;s handlebars syntax. If you&#x27;re in the same boat you&#x27;ll want to find a template engine with non-html entity delimiters.
评论 #13372738 未加载
评论 #13369799 未加载
评论 #13370978 未加载
FiloSottileover 8 years ago
You can easily install the RC as its own binary with the new awesome version tool:<p><pre><code> $ go get golang.org&#x2F;x&#x2F;build&#x2F;version&#x2F;go1.8rc1 $ go1.8rc1 download $ go1.8rc1 version go version go1.8rc1 darwin&#x2F;amd64 $ go1.8rc1 build ...</code></pre>
sjezewskiover 8 years ago
There was talk of the go team deciding on a vendoring paradigm. I don&#x27;t see any mention in the release notes. Anyone have ideas&#x2F;updates on how much closer we&#x27;re getting to an official vendoring decision?
评论 #13370000 未加载
评论 #13369949 未加载
maddybooover 8 years ago
It would be neat if there was a Go Playground running the latest beta&#x2F;RC version of Go. (Or is there?)<p>I wanted to quickly test out the new struct type conversion behavior and obviously my code[1] doesn&#x27;t compile on the normal playground.<p>Perhaps interesting to note, the `beta.golang.org`[2] homepage specifically adds an inline `display:none` style to the div containing the mini Go Playground which is normally on the `golang.org`[3] homepage - removing that style in the Chrome inspector, you can see the mini Playground, but it doesn&#x27;t work. Upon closer inspection, the code to init the playground is still there, but the `playground.js` script isn&#x27;t – the init code, however, checks for this so it doesn&#x27;t throw any errors.<p>I like the attention to detail, at least – you don&#x27;t want the homepage for a beta version to have the plaground running the current stable release version; that would be pretty confusing. Still, I wonder why the HTML and JS initialization code for the playground is still there? If they went through the effort to add a `display:none` style to the HTML and a condition to check if the Playground script is available, why not just remove it entirely?<p>Just my random thoughts - obviously not a big deal at all, I just found it interesting!<p>[1] <a href="https:&#x2F;&#x2F;play.golang.org&#x2F;p&#x2F;_OSA3O2vTR" rel="nofollow">https:&#x2F;&#x2F;play.golang.org&#x2F;p&#x2F;_OSA3O2vTR</a><p>[2] <a href="https:&#x2F;&#x2F;beta.golang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;beta.golang.org&#x2F;</a><p>[3] <a href="https:&#x2F;&#x2F;golang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;golang.org&#x2F;</a>
评论 #13377083 未加载
评论 #13371426 未加载
julio83over 8 years ago
<p><pre><code> Go 1.8 will be the last release to support Linux on ARMv5E and ARMv6 processors: Go 1.9 will likely require the ARMv6K (as found in the Raspberry Pi 1) or later. </code></pre> Does this mean that we will not be able to produce ARMv5 binaries or this is only a prerequisite for the compiler?
评论 #13369526 未加载
评论 #13369519 未加载
评论 #13369275 未加载
buckhxover 8 years ago
What&#x27;s a good version manager that allows me to jump versions without moving my whole workspace over? Currently using gvm which installs and runs different versions fine, but whenever you switch version you have to move your entire workspace over or download all your packages again.<p>Any ideas?
评论 #13371037 未加载
评论 #13371280 未加载
评论 #13372201 未加载
XorNotover 8 years ago
No mention if this is picking up the fix for the goroutine stack corruption issue in the release notes.
评论 #13368954 未加载
lsllcover 8 years ago
The new plugin package is only supported on Linux? ... hopefully this is just an rc1 limitation.
评论 #13370010 未加载
omginternetsover 8 years ago
&gt;Note that many common MIPS-based routers lack an FPU and have firmware that doesn&#x27;t enable kernel FPU emulation; Go won&#x27;t run on such machines.<p>I&#x27;m considering using Go for a small service that would live on my OpenWRT router.<p>What does this mean for me?
评论 #13370980 未加载