Golang News
http://golangnews.com
Jobs, Code, Videos and News for Go hackers - everything about the go programming languageMon, 23 Oct 2017 04:12:00 +0000Channels Are Not Enough<p>... or Why Pipelining Is Not That Easy <a href="https://talks.golang.org/2012/concurrency.slide#1" style="font-size: 1.2rem; box-sizing: border-box; color: rgb(3, 102, 214);">Golang</a> <a href="http://blog.golang.org/advanced-go-concurrency-patterns" style="font-size: 1.2rem; box-sizing: border-box; color: rgb(3, 102, 214);">Concurrency</a> <a href="http://blog.golang.org/pipelines" style="font-size: 1.2rem; box-sizing: border-box; color: rgb(3, 102, 214);">Patterns</a> for brave and smart by <a href="https://twitter.com/kachayev" style="font-size: 1.2rem; box-sizing: border-box; color: rgb(3, 102, 214);">@kachayev</a></p>
<p>Go was designed for building concurrency applications easily so it has goroutines for running independent computations and channels to communicate with each other. We've all heard this story before. All examples and tutorials look just fine: we can create a new channel, we can send to a channel, we can read from a channel, we even have the nifty, elegant select statement (btw, why do we still have statements in 21th century?), blocking reads and buffers…</p> 8 points posted by kenny
https://gist.github.com/kachayev/21e7fe149bc5ae0bd878
2807Mon, 16 Oct 2017 20:32:00 +0000Trying to write scripts in Go #cli<p>This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.</p>
<h2><a href="https://gist.github.com/posener/73ffd326d88483df6b1cb66e8ed1e0bd#why-go-is-good-for-scripting" aria-hidden="true" class="anchor" id="user-content-why-go-is-good-for-scripting" style="box-sizing: border-box; color: rgb(3, 102, 214); float: left; padding-right: 4px; margin-left: -20px; line-height: 1;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a></h2> 7 points posted by kenny
https://gist.github.com/posener/73ffd326d88483df6b1cb66e8ed1e0bd
2867Mon, 30 Oct 2017 09:08:00 +0000Go 1.7 vs 1.8 real world app test 5 points posted by gopher
https://gist.github.com/bketelsen/87e539c8126b453a0995be73e2e754c6
1399Wed, 21 Dec 2016 06:51:00 +0000A revised generics proposal for go<p>One common response to the new generics proposal has been that contracts seem a bit too much like interfaces but not the same.</p>
<p>They are indeed very similar if you squint a little. Consider these two definitions:</p> 4 points posted by kenny
https://gist.github.com/rogpeppe/45f5a7578507989ec4ba5ac639ae2c69
3529Sat, 01 Sep 2018 13:38:00 +0000A modest proposal for a new GOPATH 4 points posted by kenny
https://gist.github.com/sdboyer/def9b138af448f39300cb078b0e94cc3
2189Tue, 09 May 2017 23:50:00 +0000What is reflection and why it's cool and dangerous at the same time 3 points posted by Marcel Franke
https://gist.github.com/donutloop/33aa05733191c5f86856534719d9d784
2306Sat, 10 Jun 2017 12:36:00 +0000Redis Publish/Subscribe Sample 1 points posted by Amir
https://gist.github.com/AmirSoleimani/0296d677464f80c6722f6fb022f14b1d
3710Sun, 09 Dec 2018 11:35:00 +0000GCD - Greatest Common Divisor 1 points posted by Amir
https://gist.github.com/AmirSoleimani/c4b7435308fc5a121c4c35cba1e07024
3679Wed, 21 Nov 2018 09:50:00 +0000Pub/Sub Pattern Golang (Simple) 1 points posted by Amir
https://gist.github.com/AmirSoleimani/97298c6a94d83d3672765fb31c23194a
3676Mon, 19 Nov 2018 17:05:00 +0000Auto XSS attack protector 1 points posted by AhmadrezaZibaei
https://gist.github.com/ahmdrz/55075a33705a8184f5ccb323203902f1
1508Wed, 11 Jan 2017 11:30:00 +0000Singleton Pattern - Golang (Simple) 0 points posted by Amir
https://gist.github.com/AmirSoleimani/8a909849bd8411256cbcd2f70da9b213
3677Mon, 19 Nov 2018 17:20:00 +0000