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
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
620
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
210
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
640
Mind Mapping
helmedeiros
PRO
1
260
RailsConf 2023
tenderlove
30
1.5k
It's Worth the Effort
3n
188
29k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
250
Mobile First: as difficult as doing things right
swwweet
225
10k
Paper Plane
katiecoart
PRO
1
52k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
740
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