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
Building APIs In Go
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Sowju
August 23, 2019
Programming
0
80
Building APIs In Go
Sowju
August 23, 2019
Tweet
Share
More Decks by Sowju
See All by Sowju
containwd.pdf
sowjumn
0
290
Build a Go Web App
sowjumn
0
180
Other Decks in Programming
See All in Programming
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.3k
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
3.9k
組織で育むオブザーバビリティ
ryota_hnk
0
180
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
380
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
270
Grafana:建立系統全知視角的捷徑
blueswen
0
330
CSC307 Lecture 07
javiergs
PRO
1
550
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
250
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
720
Basic Architectures
denyspoltorak
0
680
AtCoder Conference 2025
shindannin
0
1.1k
CSC307 Lecture 08
javiergs
PRO
0
670
Featured
See All Featured
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
Faster Mobile Websites
deanohume
310
31k
Mind Mapping
helmedeiros
PRO
0
88
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
120
Typedesign – Prime Four
hannesfritz
42
2.9k
4 Signs Your Business is Dying
shpigford
187
22k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
140
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.2k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
A Soul's Torment
seathinner
5
2.3k
The Cost Of JavaScript in 2023
addyosmani
55
9.5k
Transcript
Building APIs in GO - The stack without a framework
Hi Gophers!
Agenda
Takeaways
The Problem Set : Nutritional API
API Design Considerations
None
Rapid Prototyping Frameworks ➢ ➢ ➢ ➢
Why do I DIY? ➢ ➢ ➢ ➢
How do I DIY?
HTTP HandlerFunc
Type ServeMux
net/http: type Request
go/chi
database/sql: type DB & Tx • • • • •
• • •
lib/pq : type SQL •
Code
Http BasicAuth
golang-migrate
Migrations
Applying the migrations
Router …
Controller
Model
Ratelimiting type Limiter
Summary
References • • • • • • • • •
•
Codebase & Slides https://github.com/sowjumn/diy_nutrition
Thank You!