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
よく使っているライブラリ&ツール紹介
Search
qushot
December 18, 2018
Programming
100
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
よく使っているライブラリ&ツール紹介
qushot
December 18, 2018
Transcript
11 slides
よく使っている ライブラリ&ツール紹介 2018/12/18 golang.tokyo#20
Google Cloud Platform プレミアパートナー 自己紹介 - 名前: 本 雄太朗(@qushot) -
所属: クラウドエース株式会社 - 業務: サーバサイド(GAE, GKE)をGoで開発 - Go歴: 1年くらい
開発環境 - Visual Studio Code + Go 拡張 - コマンドパレット(⌘+Shift+P)
→ Go: Install/Update Tools
ライブラリ&ツール - labstack/echo - google/uuid - go-playground/validator.v9 - swaggo/swag -
swaggo/echo-swagger
labstack/echo - 軽量Webアプリケーションフレームワーク - →起動時のバナー非表示 HideBanner = true ←これ
https://github.com/labstack/echo
google/uuid - Google製のUUID生成ライブラリ - →UUIDv4を生成 uuid.New() https://github.com/google/uuid
type Example struct { // OK: 1105530b-67ba-4173-994b-a6c09fcb9bef, NG: foobar UUID
string `validate:"uuid4"` // OK: 0 - 100, NG: -1, 101 Age int `validate:"min=0,max=100"` // OK: #ff00ff, NG: red, green Color string `validate:"hexcolor"` } go-playground/validator.v9 https://github.com/go-playground/validator
swaggo/swag // ShowAccount godoc // @Summary Show a account //
@Description get string by ID // @Accept json // @Produce json // @Param id path int true "Account ID" // @Success 200 {object} model.Account // @Failure 400 {object} controller.HTTPError // @Failure 404 {object} controller.HTTPError // @Failure 500 {object} controller.HTTPError // @Router /accounts/{id} [get] func (c *Controller) ShowAccount(ctx *gin.Context) { //something } https://github.com/swaggo/swag
func main() { e := echo.New() e.GET(“/swagger/*”, echoSwagger.WrapHandler) e.Logger.Fatal(e.Start(“:1323”)) }
http://localhost:1323/swagger/index.html にアクセス! swaggo/echo-swagger https://github.com/swaggo/echo-swagger
今後使ってみたいもの - mercari/datastore - nametake/labelerr - nametake/suberr
さいごに - 知ってるやつばかりだったらすみません!! - 便利なライブラリやツールがあったら教えてください!!
More Decks by qushot
See All by qushot
GAEアプリをCI/CDして結果をSlackに通知した話 / GAE App CICD Slack notification
qushot
0
1.1k
Other Decks in Programming
See All in Programming
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
750
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
1
2k
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
200
SODA - FACT BOOK(JP)
sodainc
1
40k
protojson における文字化けの扱い
kazuki1023
0
410
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
150
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
310
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
190
Web Framework Benchmark Battle 2026, Any%
a_matsuda
3
3.2k
Seven New Principles of Software Engineering
yegor256
0
490
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
340
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
980
Featured
See All Featured
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
350
Making Projects Easy
brettharned
120
6.9k
30 Presentation Tips
portentint
PRO
1
470
Evolving SEO for Evolving Search Engines
ryanjones
0
360
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
How to make the Groovebox
asonas
2
2.6k
Ruling the World: When Life Gets Gamed
codingconduct
0
440
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
400