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
1週間で終わらせるはじめてのGo言語学習/beginner-study-go
Search
nishina
November 07, 2021
Programming
180
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
1週間で終わらせるはじめてのGo言語学習/beginner-study-go
nishina
November 07, 2021
More Decks by nishina
See All by nishina
Postmanを利用したAPI開発/postman-tutorial
nishina555
0
130
テキスト校正ツールtextlintの 紹介と導入方法/textlint-overview
nishina555
0
130
認証・認可の仕組みを理解する上で知っておきたい基礎知識/auth-overview
nishina555
1
280
REST APIとの比較でざっくり理解するGraphQL/graphql-introduction
nishina555
0
220
ウィンドウ操作に便利な ショートカットとアプリ紹介/mac-window-shortcut
nishina555
0
190
IPアドレス(IPv4)の仕組み/overview-of-ipaddress
nishina555
0
180
図で理解する自然言語処理/nlp_tutorial
nishina555
0
300
ToDoアプリで学ぶReact/Redux入門/vtecx2_lt2
nishina555
2
3k
DiveIntoOSSThroughHacktoberfest_SPMKT
nishina555
1
350
Other Decks in Programming
See All in Programming
Semantic Version 単位で戦略を柔軟に変えて、パッケージアップデートを自動化する
daitasu
0
230
Vue × Nuxt × Oxc どこまで使える?実運用の現在地
andpad
0
240
AIだと陥りがちなJakarta EE最新技術への移行時の落とし穴と解決策
tnagao7
0
110
Signal Forms: Details & Live Coding @enterJS 2026 in Mannheim
manfredsteyer
PRO
0
120
Claspは野良GASの夢をみるか
takter00
0
190
net-httpのHTTP/2対応について
naruse
0
480
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
130
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
140
Go1.27で導入されるジェネリクスメソッドでできること
mackee
0
110
Signal Forms: Beyond the Basics @ngBaguette 2026 in Paris
manfredsteyer
PRO
0
240
AI時代の仕事技芸論 — ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ
kuranuki
2
670
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
270
Featured
See All Featured
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
840
Ethics towards AI in product and experience design
skipperchong
2
310
Java REST API Framework Comparison - PWX 2021
mraible
34
9.4k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
420
Building AI with AI
inesmontani
PRO
1
1.1k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
590
We Have a Design System, Now What?
morganepeng
55
8.2k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
160
Transcript
ਔՊ ढ़ 1िؒͰऴΘΒͤΔ ͡ΊͯͷGoݴޠֶश
• ʰA Tour of Go[1] ʱͰGoݴޠͷจ๏Λͻͱ௨Γษڧ͢Δ • ʰϓϩάϥϛϯάݴޠ Goશೖ[2] ʱͰGoΛऔΓר͘ڥ
ʹ͍ͭͯཧղ͢Δ • ʰαϯϓϧͰֶͿGoݴޠ[3] ʱͷؾʹͳͬͨαϯϓϧΛΈΔ • CRUD APIΛ࣮ͯ͠ΈΔ 1िؒͷGoݴޠֶशϩʔυϚοϓ [1]: https://go-tour-jp.appspot.com/list [2]: https://docs.google.com/presentation/d/1RVx8oeIMAWxbB7ZP2IcgZXnbZokjCmTUca-AbIpORGk/edit#slide=id.g4f417182ce_0_0 [3]: https://www.spinute.org/go-by-example/
• ϦϙδτϦ • https://github.com/nishina555/echo-gorm-crud-api-example • https://github.com/nishina555/gin-gorn-crud-api-example • ٕज़ελοΫ • ϑϨʔϜϫʔΫ:
Echoͱginͷ2ύλʔϯ • O/RϚού: GORM • ϗοτϦϩʔυ: Air • ڥมཧ: GoDotEnv • Lintπʔϧ: VS CodeͷGoϓϥάΠϯʹ͓ͤ Ռ: CRUD APIͷ࣮
• Goݴޠपลπʔϧ͕ॆ࣮͍ͯ͠Δ • ϑΥʔϚολ(goimports)ɺdocੜ(godoc)ɺίʔυνΣοΧʔ(go vet) • GoݴޠΛशಘ͢Δʹจ๏͚ͩͰͳ͘ɺपลπʔϧͷཧղॏཁ • ࣅͨπʔϧݱࡏඇਪͷใ͕ࠞࡏ͍ͯ͠ΔͷͰॳݟࡴ͠ •
ࠓGo Modules͕σϑΝΫτ͕ͩɺglide, dep, govendorͷهࣄࢄݟ • ϗοτϦϩʔυਓؾͩͬͨRealizeͷ։ൃ͕ࢭ·ΓAirͷ࣌ • Lintπʔϧͷgolintඇਪɺࠓgolangci-lintStaticcheck͕ओྲྀ • GoݴޠΛֶश͢Δࡍɺ৭ʑͳใΛಡΈړΔͷ͕Αͦ͞͏ • ϑϨʔϜϫʔΫʹબࢶ͕͋ΔͨΊɺٕज़બఆͷྗ͕ඞཁ • ϑϨʔϜϫʔΫͳΒBeego, gin, EchoɺORMͳΒGORM, gorp, Xorm • GoݴޠͰ࣮͢ΔࡍɺతΛ໌֬ʹ͢Δඞཁ͕͋Δ GoݴޠΛͬͯΈͨײ