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
310
2
Share
A beleza das interfaces em Go
pcasarettto
July 09, 2016
More Decks by pcasarettto
See All by pcasarettto
Bundler
pcasarettto
1
130
Other Decks in Programming
See All in Programming
20260313 - Grafana & Friends Taipei #1 - Kubernetes v1.36 的開發雜記:那些困在 Alpha 加護病房太久的 Metrics
tico88612
0
250
ネイティブアプリとWebフロントエンドのAPI通信ラッパーにおける共通化の勘所
suguruooki
0
250
PHPで TLSのプロトコルを実装してみる
higaki_program
0
740
モダンOBSプラグイン開発
umireon
0
200
The free-lunch guide to idea circularity
hollycummins
0
410
PHPで TLSのプロトコルを実装してみるをもう一度しゃべりたい
higaki_program
0
170
Feature Toggle は捨てやすく使おう
gennei
0
420
Claude Codeログ基盤の構築
giginet
PRO
7
3.9k
飯MCP
yusukebe
0
480
仕様漏れ実装漏れをなくすトレーサビリティAI基盤のご紹介
orgachem
PRO
8
4.6k
「速くなった気がする」をデータで疑う
senleaf24
0
140
Linux Kernelの1文字のミスで 権限昇格ができた話
rqda
0
2.3k
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
Facilitating Awesome Meetings
lara
57
6.8k
Navigating Weather and Climate Data
rabernat
0
160
Context Engineering - Making Every Token Count
addyosmani
9
800
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.1k
How STYLIGHT went responsive
nonsquared
100
6k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
Designing Experiences People Love
moore
143
24k
The untapped power of vector embeddings
frankvandijk
2
1.7k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
We Have a Design System, Now What?
morganepeng
55
8.1k
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