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
Interfaces in Go
Search
Ngalam Backend Community
July 21, 2020
Technology
0
52
Interfaces in Go
Speaker
Audi
Data Engineer at SpaceStock
Ngalam Backend Community
July 21, 2020
Tweet
Share
More Decks by Ngalam Backend Community
See All by Ngalam Backend Community
Web_Scraping_with_Scrapy.pdf
ngalambackend
0
74
Introduction to Flask
ngalambackend
0
140
Achieving API Performance and Scalability
ngalambackend
0
81
CSS in JS in action
ngalambackend
0
52
Productive Remote Working with Scrum
ngalambackend
0
66
Covid Tracker Kota Malang
ngalambackend
0
59
Supercharge Local Development with Docker
ngalambackend
1
120
Building Scalable and Flexible API by Leveraging GraphQL and BigTable
ngalambackend
1
290
Software 2.0 With Go
ngalambackend
1
49
Other Decks in Technology
See All in Technology
次世代KYC活動報告 / 20250219-BizDay17-KYC-nextgen
oidfj
0
150
利用終了したドメイン名の最強終活〜観測環境を育てて、分析・供養している件〜 / The Ultimate End-of-Life Preparation for Discontinued Domain Names
nttcom
1
120
Datadogとともにオブザーバビリティを布教しよう
mego2221
0
130
トラシューアニマルになろう ~開発者だからこそできる、安定したサービス作りの秘訣~
jacopen
2
1.8k
10分で紹介するAmazon Bedrock利用時のセキュリティ対策 / 10-minutes introduction to security measures when using Amazon Bedrock
hideakiaoyagi
0
180
プロセス改善による品質向上事例
tomasagi
2
2.2k
Cloud Spanner 導入で実現した快適な開発と運用について
colopl
1
320
30分でわかる『アジャイルデータモデリング』
hanon52_
9
2.5k
目の前の仕事と向き合うことで成長できる - 仕事とスキルを広げる / Every little bit counts
soudai
24
6.6k
ユーザーストーリーマッピングから始めるアジャイルチームと並走するQA / Starting QA with User Story Mapping
katawara
0
170
第13回 Data-Centric AI勉強会, 画像認識におけるData-centric AI
ksaito_osx
0
370
君も受託系GISエンジニアにならないか
sudataka
2
410
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
68
10k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
40
2k
The World Runs on Bad Software
bkeepers
PRO
67
11k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
410
Designing for humans not robots
tammielis
250
25k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
Being A Developer After 40
akosma
89
590k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
114
50k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.3k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
30
4.6k
Transcript
Interfeces in Go
Interfeces in Go
None
What is Interface? • abstraction • hide implementation details •
contract
Why Interface? • allows multiple implementations • limits scope of
implementations
Go Interface • implemented implicitly • generally defined in consumer
• composition > inheritance
Interface Pollution
Go Proverbs on Interface • the bigger the interface, the
weaker the abstraction • interface{} says nothing • accept interfaces, return structs
Takeaways • be lazy whenever you can • refrain from
defining interface • if you need, define interface in consumer