Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
A beleza das interfaces em Go
Search
pcasarettto
July 09, 2016
Programming
2
270
A beleza das interfaces em Go
pcasarettto
July 09, 2016
Tweet
Share
More Decks by pcasarettto
See All by pcasarettto
Bundler
pcasarettto
1
120
Other Decks in Programming
See All in Programming
スモールスタートで始めるためのLambda×モノリス
akihisaikeda
2
100
AHC 044 混合整数計画ソルバー解法
kiri8128
0
320
PHPのガベージコレクションを深掘りしよう
rinchoku
0
260
データベースエンジニアの仕事を楽にする。PgAssistantの紹介
nnaka2992
9
4.5k
gen_statem - OTP's Unsung Hero
whatyouhide
1
190
CRE Meetup!ユーザー信頼性を支えるエンジニアリング実践例の発表資料です
tmnb
0
620
Kamal 2 – Get Out of the Cloud
aleksandrov
1
170
DataStoreをテストする
mkeeda
0
280
生成AIを使ったQAアプリケーションの作成 - ハンズオン補足資料
oracle4engineer
PRO
3
190
リアクティブシステムの変遷から理解するalien-signals / Learning alien-signals from the evolution of reactive systems
yamanoku
3
1.2k
マルチアカウント環境での、そこまでがんばらない RI/SP 運用設計
wa6sn
0
710
AIコードエディタの基盤となるLLMのFlutter性能評価
alquist4121
0
200
Featured
See All Featured
Scaling GitHub
holman
459
140k
Mobile First: as difficult as doing things right
swwweet
223
9.6k
How STYLIGHT went responsive
nonsquared
99
5.5k
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.2k
Faster Mobile Websites
deanohume
306
31k
Writing Fast Ruby
sferik
628
61k
Building Adaptive Systems
keathley
41
2.5k
StorybookのUI Testing Handbookを読んだ
zakiyama
29
5.6k
How to train your dragon (web standard)
notwaldorf
91
6k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Transcript
A beleza das interfaces em Go
Paulo Casaretto @pcasaretto
Interface
Interfaces em Go
None
None
None
io.Reader io.Writer
io.Copy io.Reader io.Writer
Reader Example: GIF Decoder
os.File deblockingReader lzw.Reader
os.File | deblockingReader | lzw.Reader
os.File deblockingReader lzw.Reader io.Reader
Usando interfaces
None
None
None
None
Two relevant Go proverbs
THE BIGGER THE INTERFACE, THE WEAKER THE ABSTRACTION
interface{} says nothing
ProTip
• https://blog.golang.org/error-handling-and-go • https://blog.golang.org/errors-are-values • https://blog.golang.org/gif-decoder-exercise- in-go-interfaces • https://go-proverbs.github.io/ Resources
Thanks!
panic(“Thanks!”)
None
None
None