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
golang tokyo go tools
Search
mom0tomo
April 19, 2019
Technology
1.3k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
golang tokyo go tools
mom0tomo
April 19, 2019
More Decks by mom0tomo
See All by mom0tomo
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.4k
10年続くコミュニティ運営のコツ
mom0tomo
0
82
「名前のない仕事」にチームで取り組む–WOLとトラッキングツールの活用- / The SRE team's approach to unnamed work
mom0tomo
3
750
クラウド移行を通じた SRE/DevOps の実践 / SRE and DevOps Practice in Cloud Migration
mom0tomo
1
720
最初の言語としてGoを学んだ人から見た Ruby on Rails
mom0tomo
2
680
はじめてみんなで作ったGoのツールの話
mom0tomo
0
190
人材業界 中の人が語る 若手エンジニアの転職活動
mom0tomo
0
560
Go-ビギナーズ - よくある3つの質問
mom0tomo
2
150
Go徒然日記
mom0tomo
0
1.5k
Other Decks in Technology
See All in Technology
AIDLC_ヤフーショッピングの取り組み
lycorptech_jp
PRO
0
510
Agentic AI 時代のテスト手法: Kiro とはじめるプロパティベーステスト (AWS Summit Japan 2026 | DEV212)
ymhiroki
0
200
AI Agent SaaS を支える自社仮想化基盤への挑戦と実運用 / ai-agent-saas-virtualization
flatt_security
0
230
GitHub Copilot運用のリアル ~AI Credit時代にどう向き合うか~
takafumisu2uk1
0
620
インフラ寄りSREでも 開発に踏み出せる〜境界を越えてユーザー体験に向き合いたい〜
sansantech
PRO
0
120
Hatena Engineer Seminar 37 jj1uzh
jj1uzh
0
420
『AIに負けない』より『AIと遊ぶ』」〜ワクワクが最強のテスト・QA学習戦略_公開用
odan611
1
370
依頼文化をやめる日 EM視点で語るPlatform EngineeringとInclusive SRE / Discussing Platform Engineering and Inclusive SRE from an EM's Perspective
shin1988
0
150
AWS Summit Japan 2026の振り返りと2027へ向けて / AWS Summit Japan 2026 Recap and Prospects for 2027
kaminashi
1
190
なぜ私たちのSREプラクティスはなかなか機能しないのか 〜システムより先に組織を見る〜 / Why our SRE practices aren't really working
vtryo
0
160
AI時代における最適なQA組織の作り方
ymty
3
350
「ちゃんとやっている」は独りよがりだった ― 不安に寄り添うインシデント対応へ / Towards incident response that addresses anxieties
chmikata
1
330
Featured
See All Featured
How to Talk to Developers About Accessibility
jct
2
280
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.8k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
230
New Earth Scene 8
popppiees
3
2.4k
How to make the Groovebox
asonas
2
2.3k
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Navigating Team Friction
lara
192
16k
Everyday Curiosity
cassininazir
0
250
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Transcript
Go Λ͡ΊΔʹ͋ͨͬͯ ͓͍ͬͯͯ΄͍͠πʔϧ 2019/04/19 @golang.tokyo 1 The Go gopher was
designed by Renee French.
Who? • ެһʢࢁܗݝிʣ →WebσβΠφʔ →αʔόʔαΠυΤϯδχΞ w Women Who Go Tokyoελοϑ
!2 ID: mom0tomo
Women Who Go Tokyo Go͖͕ू·ͬͯɺ݄ʹҰςʔϚֶश͍ͯ͠·͢ !3
ΩʔΩϟοϓ൦͠·ͨ͠ ٕज़ॻయ#wwg_tokyo !4
͓ͬͯ͘ͱ ʹཱͭ͜ͱ !5
golang.orgΛࢀর͠Α͏ !6
golang.orgΛࢀর͠Α͏ golang.jp༰͕WҎલͳͷͰҙ͢Δ !7
Gophers.slack.comʹࢀՃ͠Α͏ !8
Gophers.slack.comʹࢀՃ͠Α͏ https://invite.slack.golangbridge.org/ !9
Golang WeeklyΛಡ͏ !10
!11 ͍ͬͯΔͱ ศརͳπʔϧ
Go ίϚϯυ/πʔϧ͕ॆ࣮ͯ͠ ͍Δ • go ίϚϯυ • go tool •
ඪ४ɾ४ඪ४ύοέʔδͰఏڙ͞Ε͍ͯΔ • IDEʹཔΒͳͯ͘շదʹ։ൃͰ͖Δ
ڥมΛදࣔ͢Δ $ go env 13
$ go env GOARCH="amd64" GOBIN="" GOCACHE="/home/alex/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux"
GOOS="linux" GOPATH="/home/alex/go" GOPROXY="" GORACE="" GOROOT="/usr/local/go" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go- build245740092=/tmp/go-build -gno-record-gcc-switches" 14
$ go env GOPATH GOROOT /Users/mom0tomo/dev/go /usr/local/go // ಛఆͷڥมΛൈ͖ग़ͯ͠දࣔ͢Δ 15
ίʔυΛformat͢Δ $ gofmt $ go fmt 16
$ gofmt . $ gofmt foo.go // Options // -d
: diffΛඪ४ग़ྗ͢Δ // -l : ϑΝΠϧ໊Λඪ४ग़ྗ͢Δ // -w : ্ॻ͖อଘ͢Δ // -s : ه๏Λγϯϓϧʹ͢Δ // Ұཡ https://godoc.org/github.com/gophersjp/go/src/cmd/gofmt 17
$ go fmt . $ go fmt foo.go // $
gofmt -l -w ͱಉͨ͡Β͖ // formatͨ͠༰Ͱ্ॻ͖ͯ͠ϑΝΠϧ໊Λඪ४ग़ྗ͢Δ 18
ίʔυΛ੩తղੳͯ͠ ଥੑΛνΣοΫ͢Δ $ go vet 19
$ go vet . $ go vet foo.go // ίʔυΛ੩తղੳͯ͠ه๏ΛνΣοΫ͢Δ
// ίϯύΠϥʹݕͰ͖ͳ͍ͷΛݟ͚ͭͯ͘ΕΔ 20
Ϧϯλʔʹ͔͚Δ $ golint 21
$ golint . $ golint foo.go // ίʔυ͕Effective GoͱCodeReviewCommentsʹ Ԋ͏͔νΣοΫ͢Δ
22
Thank you! @mom0tomo 23