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
190
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
140
認証・認可の仕組みを理解する上で知っておきたい基礎知識/auth-overview
nishina555
1
290
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
310
ToDoアプリで学ぶReact/Redux入門/vtecx2_lt2
nishina555
2
3k
DiveIntoOSSThroughHacktoberfest_SPMKT
nishina555
1
350
Other Decks in Programming
See All in Programming
yield再入門 #phpcon
o0h
PRO
0
710
言語を使う側から、作る側へ。 自作 Lisp で得た新たな気づき。
andpad
0
130
「正の参照」と 「負の導出」で組む ハーネスエンジニアリング
cottpan
1
150
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
1
610
Laravelで学ぶ Webアプリケーションチューニング入門/web_application_tuning_101
hanhan1978
4
1.2k
分散システム、なんですぐ死んでしまうん?耐障害性を高めたいあなたのためのレジリエンスパターン入門
mshibuya
7
6.7k
PHP に部分適用が来るぞ!……ところで何それ?おいしいの? #phpcon / phpcon-2026
shogogg
0
330
【やさしく解説 設計編 #1】「ドメイン駆動」と「実装駆動」ってなに? 〜設計の考え方を、たとえ話で学ぼう〜
panda728
PRO
1
120
AIを活用したE2Eテスト実装効率化のあゆみ / ebisu-mobile-14-kotetu
kotetuco
0
180
えっ!!コードを読まずに開発を!?
hananouchi
0
230
ITヒヤリハットを整理してみた ~ライフサイクルと原因から考える再発防止策~
koukimiura
1
110
5分で問診!Composer セキュリティ健康診断
codmoninc
0
560
Featured
See All Featured
Deep Space Network (abreviated)
tonyrice
0
230
The agentic SEO stack - context over prompts
schlessera
0
850
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
370
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
970
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.7k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
190
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
440
Claude Code のすすめ
schroneko
67
230k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Balancing Empowerment & Direction
lara
6
1.2k
YesSQL, Process and Tooling at Scale
rocio
174
15k
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ݴޠΛͬͯΈͨײ