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
受け入れテスト駆動開発(ATDD)×AI駆動開発 AI時代のATDDの取り組み方を考える
kztakasaki
2
560
CDIの誤解しがちな仕様とその対処TIPS
futokiyo
0
200
エージェント開発初心者の僕がエージェントを作った話と今後やりたいこと
thasu0123
0
240
AI時代のシステム設計:ドメインモデルで変更しやすさを守る設計戦略
masuda220
PRO
5
840
Unity6.3 AudioUpdate
cova8bitdots
0
120
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
420
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
380
Rで始めるML・LLM活用入門
wakamatsu_takumu
0
170
AI活用のコスパを最大化する方法
ochtum
0
130
ふつうの Rubyist、ちいさなデバイス、大きな一年
bash0c7
0
820
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
15
8.5k
エンジニアの「手元の自動化」を加速するn8n 2026.02.27
symy2co
0
130
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
37
3.6k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
We Are The Robots
honzajavorek
0
190
Testing 201, or: Great Expectations
jmmastey
46
8.1k
Un-Boring Meetings
codingconduct
0
220
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
290
Side Projects
sachag
455
43k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
860
SEO for Brand Visibility & Recognition
aleyda
0
4.3k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
Discover your Explorer Soul
emna__ayadi
2
1.1k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
680
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!