$30 off During Our Annual Pro Sale. View Details »
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
300
A beleza das interfaces em Go
pcasarettto
July 09, 2016
Tweet
Share
More Decks by pcasarettto
See All by pcasarettto
Bundler
pcasarettto
1
130
Other Decks in Programming
See All in Programming
re:Invent 2025 トレンドからみる製品開発への AI Agent 活用
yoskoh
0
390
著者と進める!『AIと個人開発したくなったらまずCursorで要件定義だ!』
yasunacoffee
0
160
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
390
Basic Architectures
denyspoltorak
0
120
Canon EOS R50 V と R5 Mark II 購入でみえてきた最近のデジイチ VR180 事情、そして VR180 静止画に活路を見出すまで
karad
0
140
Implementation Patterns
denyspoltorak
0
120
まだ間に合う!Claude Code元年をふりかえる
nogu66
5
900
Deno Tunnel を使ってみた話
kamekyame
0
240
令和最新版Android Studioで化石デバイス向けアプリを作る
arkw
0
450
クラウドに依存しないS3を使った開発術
simesaba80
0
170
C-Shared Buildで突破するAI Agent バックテストの壁
po3rin
0
420
GISエンジニアから見たLINKSデータ
nokonoko1203
0
180
Featured
See All Featured
Practical Orchestrator
shlominoach
190
11k
The SEO identity crisis: Don't let AI make you average
varn
0
39
Designing for Performance
lara
610
69k
Ethics towards AI in product and experience design
skipperchong
1
140
The SEO Collaboration Effect
kristinabergwall1
0
310
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
980
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
120
Building the Perfect Custom Keyboard
takai
1
660
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
400
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
73
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Tell your own story through comics
letsgokoyo
0
760
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