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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
音楽のための関数型プログラミング言語mimiumにおける多段階計算の活用
tomoyanonymous
1
350
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
1
210
鹿野さんに聞く!『TypeScriptコードレシピ集』で磨く実践力
tonkotsuboy_com
4
1.1k
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
0
120
えっ!!コードを読まずに開発を!?
hananouchi
0
230
分散システム、なんですぐ死んでしまうん?耐障害性を高めたいあなたのためのレジリエンスパターン入門
mshibuya
7
6.7k
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
180
SREの積み重ねがAI駆動開発のガードレールになった ― 7つの実践/SRE Guardrails The 7
tomoyakitaura
8
5.3k
AI時代、エンジニアはどう育つのか -未経験エンジニアの成長を間近で見て考えたこと-
thasu0123
0
140
Foundation Models frameworkで画像分析
ryodeveloper
1
130
광주소프트웨어마이스터고등학교 DevFest 특강 - 바이브 코딩 시대에서 주니어 개발자로 살아남는 방법
utilforever
1
150
どこまでゆるくて許されるのか
tk3fftk
0
520
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
45k
Visualization
eitanlees
152
17k
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
640
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
660
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.4k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Google's AI Overviews - The New Search
badams
0
1.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
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ݴޠΛͬͯΈͨײ