Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Building APIs In Go
Search
Sowju
August 23, 2019
Programming
82
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Building APIs In Go
Sowju
August 23, 2019
More Decks by Sowju
See All by Sowju
containwd.pdf
sowjumn
0
300
Build a Go Web App
sowjumn
0
190
Other Decks in Programming
See All in Programming
カツオ、ご期待ください
suneo3476
0
190
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.6k
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.7k
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
28
32k
ChromeでローカルLLM
ryu1013
0
140
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
610
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
220
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
2
560
R8 の設定見直しでアプリサイズ削減
andpad
0
220
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
Featured
See All Featured
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
Designing for Performance
lara
612
70k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
The Cost Of JavaScript in 2023
addyosmani
55
10k
Designing Powerful Visuals for Engaging Learning
tmiket
1
610
Marketing to machines
jonoalderson
1
5.9k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Done Done
chrislema
187
17k
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!