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
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
React Native × React Router v7 API通信の共通化で考えるべきこと
suguruooki
0
100
並行開発のためのコードレビュー
miyukiw
0
1.2k
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
310
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
140
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
690
24時間止められないシステムを守る-医療ITにおけるランサムウェア対策の実際
koukimiura
1
130
ぼくの開発環境2026
yuzneri
0
240
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
2.5k
360° Signals in Angular: Signal Forms with SignalStore & Resources @ngLondon 01/2026
manfredsteyer
PRO
0
140
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
440
CSC307 Lecture 09
javiergs
PRO
1
840
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
Featured
See All Featured
Game over? The fight for quality and originality in the time of robots
wayneb77
1
120
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
71k
Crafting Experiences
bethany
1
52
The browser strikes back
jonoalderson
0
420
Building the Perfect Custom Keyboard
takai
2
690
Facilitating Awesome Meetings
lara
57
6.8k
How to build a perfect <img>
jonoalderson
1
4.9k
Building AI with AI
inesmontani
PRO
1
710
The Mindset for Success: Future Career Progression
greggifford
PRO
0
240
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
440
Thoughts on Productivity
jonyablonski
74
5k
Context Engineering - Making Every Token Count
addyosmani
9
670
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