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
校内LT大会2018/06/27
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Hayato Suzuki
June 27, 2018
62
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
校内LT大会2018/06/27
Hayato Suzuki
June 27, 2018
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
How to Think Like a Performance Engineer
csswizardry
28
2.9k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
460
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Six Lessons from altMBA
skipperchong
29
4.5k
Between Models and Reality
mayunak
4
500
Discover your Explorer Soul
emna__ayadi
2
1.3k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
Typedesign – Prime Four
hannesfritz
42
3.2k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Transcript
(PPO("& 4XJGU
荈䊹稱➜ せխխխխꈿ加괝➂խ)BZBUP4V[VLJ խխխխխխ!TVIBZB 鎉铂խխխխ3VCZծ(P ،ٕغ؎زխIFZ JOD 4503&4KQ 㥨ֹזմմխ蔓➂
ך➭խխխًٕل؎(PQIFS麣㜥劍欰
荈䊹稱➜ せխխխխꈿ加괝➂խ)BZBUP4V[VLJ խխխխխխ!TVIBZB 鎉铂խխխխ3VCZծ(P ،ٕغ؎زխIFZ JOD 4503&4KQ 㥨ֹזմմխ蔓➂
ך➭խխխًٕل؎(PQIFS麣㜥劍欰
ⰻ㺁 (PPO("& 4XJGU "1*؟٦غ
IUUQTDMPVEHPPHMFDPNBQQFOHJOFEPDTTUBOEBSEHPRVJDLTUBSU
ծ($1فٗآؙؑزה խխ"QQ&OHJOF،فٔ؛٦ءّٝך⡲䧭 ծ(PPHMF$MPVE4%,تؐٝٗ٦س ծ)FMMP8PSME،فٔتؐٝٗ٦س ծٗ٦ٕؕ涪؟٦غ饯⹛ խխխխխխխխխխխխխխխխ ծ،فٔرفٗ؎ խխխխխխխխխ 2VJDLTUBSU
(JO 8FCGSBNFXPSL $ go get github.com/gin-gonic/gin
type User struct { ID int `json:”id”` Name string `json:”name”`
Introduction string `json:”introduction”` } 圓鸡⡤
……… func GetEngine() *gin.Engine { router := gin.Default() router.GET(“/”, func(c
*gin.Context) { c.String(http.StatusOK, “Hello, ੈք”) }) router.GET(“/api/users/:id”, GetUser) return router } ……… ٕ٦ذ؍ؚٝ
……… func GetUser(c *gin.Context) { id := c.Param(“id”) U :=
User { ID: id, Name: “json_test”, Introduction: “hello, json_test”, } c.JSON(http.StatusOK, u) } ……… KTPOד鵤ׅ
$ dev_appserver.py app.yaml ٗ٦ٕؕ؟٦غ饯⹛
IUUQMPDBMIPTUBQJVTFST \ JE OBNFˑKTPO@UFTU˒ JOUSPEVDUJPOˑIFMMP KTPO@UFTU˒ ^
$ gcloud app deploy رفٗ؎ IUUQTYYYYYYBQQTQPUDPN
䠬䟝
ׅזְֽկ ("&嚂׃ַկ %BUBTUPSF⢪ג⦼ךװ《ָ דֹ״ֲחזְկ
ַֿ
None
ֶ׃תְ IUUQTUBMFOUUIFUWKQQFSTPO