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
GoでGemを作っています
Search
enta0701
October 24, 2017
Technology
0
670
GoでGemを作っています
LT資料
enta0701
October 24, 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
『GRANBLUE FANTASY: Relink』最高の「没入感」を実現するカットシーン制作手法とそれを支える技術
cygames
1
160
JTCや セキュリティチェックリストが夢の跡
nikinusu
1
810
チームビルディングは"感性"で向き合おう / Team Building with Awareness
kohzas
0
280
Mocking in Rust Applications
taiki45
2
420
なにもしてないのにNew Relicのデータ転送量が増えていたときに確認したこと
tk3fftk
2
230
エムスリーエビデンス創出プロダクトチーム紹介資料 / Introduction of M3 Create Evidence Team
m3_engineering
0
260
不動産売買取引におけるAIの可能性とプロダクトでのAI活用
zabio3
0
280
公共交通データとアプリ制作 - Mini Tokyo 3D の初期制作過程を振り返る
nagix
1
120
Developer Experienceを向上させる基盤づくりの取り組み事例集
coconala_engineer
0
160
Tricentisにおけるテスト自動化へのAI活用ご紹介/20240910Shunsuke Katakura
shift_evolve
0
210
Jetpack Compose Modifier 徹底解説 / Jetpack Compose Modifier
wiroha
0
210
内製化を目指す事業会社が、システム開発会社と共に進める「開発生産性改善」の取り組み事例 #devsumi
yuwji
1
170
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
30
2.3k
Practical Orchestrator
shlominoach
185
10k
Designing Experiences People Love
moore
138
23k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
5
490
Building Flexible Design Systems
yeseniaperezcruz
325
38k
4 Signs Your Business is Dying
shpigford
179
21k
YesSQL, Process and Tooling at Scale
rocio
167
14k
The Illustrated Children's Guide to Kubernetes
chrisshort
47
48k
Writing Fast Ruby
sferik
623
60k
Fashionably flexible responsive web design (full day workshop)
malarkey
401
65k
Designing for Performance
lara
604
68k
Principles of Awesome APIs and How to Build Them.
keavy
125
16k
Transcript
(PͰ(FNΛ࡞͍ͬͯ·͢ ʮ࠷ۙɺ(Pݴޠ࢝Ί·ͨ͠ʯͷձ !FOUB
ࣗݾհ ❐ɹԕ౻ ❐ɹגࣜձࣾϕʔγοΫʢ৽ଔ̍ʣ ❐ɹؠख㱺౦ژ ❐ɹ3VCZ%PDLFSLT ɹ(P"OESPJE+4 ❐ɹ(Pྺɿϲ݄͙Β͍ !FOUB !FOEPUBLVZB !FOUB
ຊ
(PͰ(FNΛ࡞͍ͬͯ·͢
ࣾʹͯ 3BJMT͚ͩͰ ը૾ΛಈతϦαΠζ͍ͨ͠ ❐ύϥϝʔλʹαΠζΛ༩ͯ͠ಈతϦαΠζ ❐ࣄલϦαΠζ6*ͷมߋʹऑ͍
ํ๏͍Ζ͍Ζ͋ΔΒ͍͠ ❐ɹOHJOYͷը૾ϦαΠζαʔό ❐ɹ"LBNBJ ❐ɹJNHJY ❐ɹ*NBHF3FTJ[FS ͱ͔ͱ͔ɻ
;ͱ ͋Δ2JJUBͷهࣄΛࢥ͍ग़ͨ͠
3VCZ͔Β(PΛ͍͡ΕΔ ❐ഒ͘ͳΔʁʂ ❐''*ʢ'PSFJHO'VODUJPO*OUFSGBDFʣ ❐ͳΜ͔ྑͦ͞͏ʢͦΜͳʹਂ͘ߟ͑ͣʣ
࡞ͬͯΈͨ ❐JSFT ɾը૾ॲཧʢ3FTJ[F $SPQ FUDʣɺ(Pͤ ɾ3VCZʢ(FNʣɺ(PͷؔΛݺͼग़͚ͩ͢ ɾ%PXOMPBET͙Β͍ ɾΩϟογϡରԠ <%= ires_tag(
path: "image.jpg", width: 90, height: 120 ) %>
͓ੈʹͳͬͨύοέʔδ ❐ϦαΠζ ɾHJUIVCDPNOGOUSFTJ[F ɾґଘύοέʔδͳ͠ ❐Γൈ͖ ɾHJUIVCDPNPMJBNCDVUUFS ɾґଘύοέʔδͳ͠
''*Ͱ(PΛ͏४උ 3VCZ͔Β''*ͰಡΈࠐΉͨΊʹ4IBSFE0CKFDUԽ package main import ( "C" ) func main()
{} //export test func test() *C.char { return C.CString("test!!!") } ᶃ$ΛಡΈࠐΉ ᶄ໊ؔΛࢦఆ
''*Ͱ(PΛ͏४උ Ϗϧυ $ go build -buildmode=c-shared -o test.so main.go 㱺
test.h test.so ͋ͱɺUFTUTPΛ3VCZଆͰݺΜͰ͋͛Ε0,
తʹʁ 3.BHJDL *SFT ʢΩϟογϡͳ͠ʣ *SFT ʢΩϟογϡ͋Γʣ NT NT NT ɾYʢ,#ʣͷը૾ຕ
ɾYʢʣʹϦαΠζ ɾ7JFXͰදࣔ͢Δ͚ͩ
ͪΐͬͱؾʹͳͬͯ·͢ 2%PDLFSͰڥΛ࡞Δ࣌ɺ ɹΞϓϦέʔγϣϯͷύεͬͯͲ͏ઃఆͯ͠·͔͢ʁ $ echo $GOPATH /go WORKDIR /go/src/ires #
or WORKDIR /go/src/github.com/endotakuya/ires ͷͱ͖ɺ
·ͱΊ ɾॏΊͳॲཧΛ(Pʹ͓ͤͯ͠ΈΔͷΞϦ͔ ɾ4IBSFE0CKFDUº''*ͳͷͰɺ͍ΖΜͳݴޠʹରԠՄ ɾ$ͱ(PͰͷͷΓͱΓʢ$$4USJOHͱ͔ʣҙ ɾ(Pॻָ͍͍ͯͯ͠ʂʢ·ͩπϥ͞Λ͔ͬͯͳ͍͚ͩ ɾؾʹͳΔํͪ͜Β͔Β ɾIUUQTSVCZHFNTPSHHFNTJSFT ɾIUUQTHJUIVCDPNFOEPUBLVZBJSFT
͋Γ͕ͱ͏͍͟͝·ͨ͠