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
140
Other Decks in Programming
See All in Programming
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
4
410
GitHubCopilotCLIをはじめよう.pdf
htkym
0
310
The Less-Told Story of Socket Timeouts
coe401_
3
890
GoogleCloudとterraform完全に理解した
terisuke
1
180
Explore CoroutineScope
tomoeng11
0
140
Claude Codeをカスタムして自分だけのClaude Codeを作ろう
terisuke
0
160
AI-DLC Deep Dive
yuukiyo
9
5.3k
Swift Concurrency Type System
inamiy
1
570
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
720
Liberating Ruby's Parser from Lexer Hacks
ydah
2
2.4k
Running Swift without an OS
kishikawakatsumi
0
870
From Formal Specification to Property Based Test
ohbarye
0
630
Featured
See All Featured
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
300
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
65
54k
Building an army of robots
kneath
306
46k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
530
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Heart Work Chapter 1 - Part 1
lfama
PRO
6
35k
Tell your own story through comics
letsgokoyo
1
910
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
820
Docker and Python
trallard
47
3.8k
Designing Experiences People Love
moore
143
24k
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