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言語のツールを配布する #hikarie_go
Search
taichi nakashima
June 17, 2014
3.7k
7
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
複数プラットフォームにGo言語のツールを配布する #hikarie_go
http://connpass.com/event/6579/
taichi nakashima
June 17, 2014
More Decks by taichi nakashima
See All by taichi nakashima
Platform Engineering at Mercari (Platform Engineering Kaigi 2024)
tcnksm
6
5.6k
Platform Engineering at Mercari
tcnksm
8
5.8k
Embedded SRE at Mercari
tcnksm
0
1.6k
How We Harden Platform Security at Mercari
tcnksm
2
1.9k
SRE Practices in Mercari Microservices
tcnksm
11
15k
開発者向けの基盤をつくる
tcnksm
38
12k
How We Structure Our Work At Mercari Microservices Platform Team
tcnksm
11
23k
Microservices Platform on Kubernetes at Mercari
tcnksm
16
17k
Introduction to Mercari Micorservices Platform Team
tcnksm
5
3.7k
Featured
See All Featured
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.3k
Visualization
eitanlees
152
17k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
190
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.2k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
200
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
For a Future-Friendly Web
brad_frost
183
10k
A Modern Web Designer's Workflow
chriscoyier
698
190k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
460
Practical Orchestrator
shlominoach
191
11k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
820
Transcript
Distribute Golang Tool to Multiple Platform
I’m Taichi Nakashima Twitter ID is @deeeet
http://deeeet.com/writing
docc dmux https://github.com/tcnksm/dmux https://github.com/tcnksm/docc - docker + tmux = dmux
! - docc open your project document
GoݴޠͰ࡞ͬͨπʔϧΛෳϓϥοτϑΥʔϜʹ͢Δ
Why start to write golang? ͕ࣗ࡞ͬͨπʔϧΛͬͯΒ͏ͨΊͷ োนΛԼ͍͛ͨɻgem? pip ? Λͳ͍ͨ͘͠ɻ
$ brew tap tcnksm/docc $ brew install docc OSX
hashicorp
None
None
Cross-Compile, Upload, Install How?
Cross-Compile
Basic $ GOOS=linux GOARCH=amd64 go build hikarie.go
mitchellh/gox $ gox ! --> darwin/386: github.com/tcnksm/hikarie --> darwin/amd64: github.com/tcnksm/hikarie
--> linux/386: github.com/tcnksm/hikarie --> linux/amd64: github.com/tcnksm/hikarie --> linux/arm: github.com/tcnksm/hikarie --> freebsd/386: github.com/tcnksm/hikarie --> freebsd/amd64: github.com/tcnksm/hikarie --> openbsd/386: github.com/tcnksm/hikarie --> openbsd/amd64: github.com/tcnksm/hikarie
mitchellh/gox $ gox ! --> darwin/386: github.com/tcnksm/hikarie --> darwin/amd64: github.com/tcnksm/hikarie
--> linux/386: github.com/tcnksm/hikarie --> linux/amd64: github.com/tcnksm/hikarie --> linux/arm: github.com/tcnksm/hikarie --> freebsd/386: github.com/tcnksm/hikarie --> freebsd/amd64: github.com/tcnksm/hikarie --> openbsd/386: github.com/tcnksm/hikarie --> openbsd/amd64: github.com/tcnksm/hikarie
• laher/goxc • davecheney/golang-crosscompile Else
Upload
https://github.com/tcnksm/docc/releases
https://bintray.com
REST API $ curl -T <FILE.EXT> \ -utcnksm:<API_KEY> \ https://api.bintray.com/content/tcnksm/dmux/dmux/
<VERSION_NAME>/<FILE_TARGET_PATH>
Install
$ brew tap tcnksm/docc $ brew install docc OSX
1. GitHub ϨϙδτϦ homebrew-<package> Λ࡞ 2. Formula <package>.rb Λ࡞ How
Formula require "formula" ! class Docc < Formula homepage "https://github.com/tcnksm/docc"
version ‘0.1.1' url "https://github.com/tcnksm/docc/v0.1.1/docc_0.1.1_darwin_amd64.zip" sha1 "eaad2915415c5ceb3e3fb613420be62a856da46a" ! depends_on :arch => :intel ! def install bin.install 'docc' end end
Demo