<p>Keyword <code>func</code><br/>
<em>(To the tune of Uptown Funk by Mark Ronson)</em></p>
<p>Let's write some nice code<br/>
In Golang, the easy mode<br/>
This spec's forty-five pages,<br/>
Not a thousand pages, like C++!<br/>
Rob Pike, Ken T., Griesemer made it at Google<br/>
Release time 2009<br/>
Got a syntax easy and frugal </p>
<p>Static typed (go-lang!)<br/>
Be assured, type is immutable<br/>
Compiled (go-lang!)<br/>
To one static-linked executable<br/>
Spread wide (go-lang!)<br/>
Any platform is suitable<br/>
Runtime (go-lang!)<br/>
Go is garbage collected (break it down) </p>
<p>Functions are first-class objects (go!)<br/>
Functions are first-class objects (go!)<br/>
Functions are first-class objects (go!)<br/>
The keyword <code>func</code> declares a function<br/>
The keyword <code>func</code> declares a function<br/>
The keyword <code>func</code> declares a function<br/>
Built-in detector prevents deadlocks<br/>
Go's a language that rocks (c'mon) </p>
<p>(Sweet trumpet interlude)<br/>
Go's a language that rocks<br/>
(Sweet trumpet interlude) </p>
<p>Go's a language that rocks<br/>
Go's a language that rocks<br/>
Go's a language that rocks<br/>
Hey, hey, hey, oh!<br/>
Stop, time.Sleep() </p>
<p>Golang's switch is a limber statement<br/>
Memory safe, bounds are checked<br/>
"What are its, design goals?"<br/>
Fast compile speed, concurrency, programmer productivity<br/>
Every feature makes you a preacher<br/>
So to use it you'll have proclivity </p>
<p>Like "select" (go-lang!)<br/>
Choose a channel, and then run its case<br/>
Object (go-lang!)<br/>
No inheritance, just embed the base<br/>
Reflect (go-lang!)<br/>
Sw**** on the type of an interface!<br/>
Project (go-lang!)<br/>
There's no need for makefiles (break it down) </p>
<p>Functions are first-class objects (go!)<br/>
Functions are first-class objects (go!)<br/>
Functions are first-class objects (go!)<br/>
The keyword <code>func</code> declares a function<br/>
The keyword <code>func</code> declares a function<br/>
The keyword <code>func</code> declares a function<br/>
Built-in detector prevents deadlocks<br/>
Go's a language that rocks (c'mon) </p>
<p>(Sweet trumpet interlude)<br/>
Go's a language that rocks<br/>
(Sweet trumpet interlude) </p>
<p>Go's a language that rocks<br/>
Go's a language that rocks<br/>
Go's a language that rocks<br/>
Hey, hey, hey, oh! </p>
<p>Before we receive,<br/>
I want to tell y'all that Go supports closures </p>
<p>Inline func you up, inline func you up<br/>
Inline func you up, inline func you up<br/>
Inline func you up, inline func you up<br/>
Inline func you up, inline func you up </p>
<p>Gopher, not ferret<br/>
Left-to-right's how we declare it<br/>
Learn to value your errors; its<br/>
Core libraries have great merit<br/>
Gopher, not ferret<br/>
Golang's virtues you'll parrot<br/>
Well, its built-in detector prevents deadlocks<br/>
Go's a language that rocks (c'mon) </p>
<p>(Sweet trumpet interlude)<br/>
Go's a language that rocks<br/>
(Sweet trumpet interlude) </p>
<p>Go's a language that rocks<br/>
Go's a language that rocks<br/>
Go's a language that rocks<br/>
Hey, hey, hey, oh! </p>
<p>Inline func you up, inline func you up (x8) </p>
<hr/>**评论:**<br/><br/>ctbel: <pre><p>First I was confused, then I realized it's Friday... Gophigure.</p></pre>shovelpost: <pre><p>I do not like the song and didn't even read this but I am upvoting for the effort.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传