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
Alfred Workflows by Go
Search
enta0701
December 11, 2017
Technology
4
2.8k
Alfred Workflows by Go
enta0701
December 11, 2017
Tweet
Share
More Decks by enta0701
See All by enta0701
ミルクココアが好きです
endotakuya
0
15
Kubernetes 超入門
endotakuya
0
120
GKE と EKS について 理解した気分になる7分間
endotakuya
0
54
はじめての CircleCI × EKS
endotakuya
1
610
Go / Node.js で入門する gRPC
endotakuya
0
160
LINE Clova スキルの開発ハンズオンに enebular は最適だった話。
endotakuya
1
960
LINE Clova と自由に会話をしよう
endotakuya
0
170
GoでClova Extension開発ができるようになりました
endotakuya
0
63
シンプルなテンプレートエンジンが欲しい
endotakuya
0
730
Other Decks in Technology
See All in Technology
Privacy Sandbox on Android / DroidKaigi 2024
7pairs
1
270
PDF Viewer作成の今までとこれから
hunachi
0
470
リアルお遍路+SORACOM IoT
ozk009
1
140
20240911_New_Relicダッシュボード活用例
speakerdeckfk
0
110
事前準備が肝!AI活用のための業務改革
layerx
PRO
1
380
Cloud Run と GitHub Template Repository による軽量なアプリケーションプラットフォーム/ #nikkei_tech_talk
nikkei_engineer_recruiting
0
100
学術機関におけるID連携とOpenID Connect
fujie
0
230
四国のあのイベントの〇〇システムを45日間で構築した話 / cloudohenro2024_tachibana
biatunky
0
330
『GRANBLUE FANTASY: Relink』最高の「没入感」を実現するカットシーン制作手法とそれを支える技術
cygames
1
140
eBPFのこれまでとこれから
yutarohayakawa
10
3.2k
あなたの知らないiOS開発の世界
recruitengineers
PRO
3
180
Developer Experienceを向上させる基盤づくりの取り組み事例集
coconala_engineer
0
150
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
65
9.8k
VelocityConf: Rendering Performance Case Studies
addyosmani
322
23k
Design by the Numbers
sachag
277
19k
BBQ
matthewcrist
83
9.2k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
278
13k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
363
22k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
230
17k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
43
2k
Robots, Beer and Maslow
schacon
PRO
157
8.2k
Web Components: a chance to create the future
zenorocha
308
42k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
5
480
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
0
120
Transcript
"MGSFE8PSLqPXT CZ(P 2017/12/11 golang.tokyo #11 @enta0701
ࣗݾհ ❐ɹ!FOUB ❐ɹגࣜձࣾϕʔγοΫ ❐ɹ3VCZ%PDLFSLT ɹ(P"OESPJE+BWB4DSJQU ❐ɹ(Pྺɿ͗͢ @enta0701 @endotakuya @enta0701
"MGSFE ɹͬͯ·͔͢ʁ
"MGSFE ❐ΠϯΫϦϝϯλϧαʔνͰύύοͱݕࡧ ❐ग़དྷΔݶΓΩʔϘʔυͷૢ࡞Ͱ͍݁ͨ͠ਓ͚ ❐εϦʔϓͱ͔ຯʹָ
"MGSFE8PSLqPXT ❐"MGSFEΛΑΓޮՌతʹ͑Δ֦ுػೳ ❐Ϣʔϩʢ ԁʣΛ͏͜ͱͰ͑Δ ❐Α͘͏ͷɺHJUIVC'POU"XFTPNF2JJUB
8PSLqPX ࣗ࡞Ͱ͖·͢
8PSLqPXΛࣗ࡞͢Δ ❐"MGSFE1SFGFSFODFT8PSLqPXT ɹ(FU4UBSUFE4DSJQU'JMUFS
8PSLqPXΛࣗ࡞͢Δ ❐4DSJQU'JMUFSΛબ ❐ͲͷݴޠΛબΜͰɺ࠷ऴతʹඞཁͳͷ+40/ ❐CJOCBTIͰɺ(Pͷ࣮ߦϑΝΠϧΛͤ0,
ͪͳΈʹ4QPSUJGZʁ ೖྗ͢Δ,FZXPSE͝ͱʹ4DSJQUΛΈ߹ΘͤΔ
ຊ
"MGSFE8PSLqPXT CZ(P
͢Ͱʹଘࡏ͢Δ"MGSFEͷύοέʔδ ϑΥʔϚοτ 4UBS ϝϯςφϯε SVFEBQHPBMGSFE 9.- QBTDBMXHPBMGSFE 9.-
EFBOJTIFBXHP +40/ ˞"MGSFE͔Β+40/͕ਪ
BXHP ❐HPCVJMEͨ͠ͷΛɺຖճ8PSLqPXʹஔ͢Δ ɹඞཁͯ͠ݕূ͢Δඞཁ͕͋Δ ❐HPSVOͰؾܰʹݕূ͍ͨ͠ ❐DBDIFͱ͔͍ΖΜͳػೳ͋Δ͚Ͳͦ͜·ͰٻΊͯͳ͍ ❐ڥมΛ࣮ߦϑΝΠϧʹؚΊ͍ͨ ɹ˞8PSLqPXΛ͢Δͱ͖ʹFOWΛެ։ͨ͘͠ͳ͍
ͬͱγϯϓϧͰ ͍͍͕ͭ͢ཉ͍͠
8PSLqPXʹ͢ɺ࠷খݶͷ+40/ {"items": [ { "title": "Desktop", "arg": "~/Desktop", } ]}
BMGSFEHP $ go get github.com/endotakuya/alfred-go/... func main() { a :=
alfred.New() item := alfred.NewItem() item.Title = "Desktop" item.Arg = "~/Desktop" a.Append(item) a.Print() }
FOWͷσʔλΛຒΊࠐΉ HOGE="text" FUGA="http://example.com/" PIYO=50000 $ alfred-go $ ls env ./
../ env.go FOW FOWFOWHPΛੜ
FOWͷσʔλΛຒΊࠐΉ func main() { fmt.Println( env.List() ) fmt.Println( env.Get(“HOGE") )
} map[HOGE:text FUGA:http://example.com/ PIYO:50000] text औΓग़͢ͱ͖ɺ
FOWHPͷੜ w := bufio.NewWriter(f) => f: *os.File defer w.Flush() fmt.Fprintf(
w, `package main import ( "fmt" ) func main() { fmt.Println(“%s") }`, “Hello, world”) HPCJOEBUBΛࢀߟʢࡶʹॻ͘ͱ͜Μͳײ͡ʣ
·ͱΊ ❐HPͷϑΝΠϧͷੜํ๏ؾ࣋ͪѱ͍ɺɺɺ ❐8PSLqPXTΛ࡞Δͱ͖ɺ ɹػೳ͝ͱʢαδΣετ͍ͨ͠LFZXPSE͝ͱʁʣʹ ɹ࣮ߦϑΝΠϧΛੜ͍ͯ͠ΔΓํ͕ଟ͍ ɹ㱺͜Ε͙Β͍γϯϓϧͳύοέʔδͷ΄͏͕ѻ͍ͦ͢͏ ❐ͨͬͨͷ ԁͰ͜ΜͳʹշదʹͳΔͳΜͯʂ ❐"MGSFE8PSLqPXTΛ(Pࣗ࡞ָͯ͠Λ͠·ͤΜ͔
͋Γ͕ͱ͏͍͟͝·ͨ͠