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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2.4k
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
200
AI & Enginnering
codelynx
0
120
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
180
Architectural Extensions
denyspoltorak
0
290
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
310
dchart: charts from deck markup
ajstarks
3
1k
ぼくの開発環境2026
yuzneri
0
240
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
200
並行開発のためのコードレビュー
miyukiw
0
290
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
Featured
See All Featured
For a Future-Friendly Web
brad_frost
182
10k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
270
Raft: Consensus for Rubyists
vanstee
141
7.3k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
86
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
110
Google's AI Overviews - The New Search
badams
0
910
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
A Tale of Four Properties
chriscoyier
162
24k
Practical Orchestrator
shlominoach
191
11k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
830
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
55
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!