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.9k
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
The Spectacular Lies of Maps
axbom
PRO
1
820
Are puppies a ranking factor?
jonoalderson
1
3.6k
A Tale of Four Properties
chriscoyier
163
24k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
420
Into the Great Unknown - MozCon
thekraken
41
2.6k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
620
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
400
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
3.5k
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