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
24k
Microservices Platform on Kubernetes at Mercari
tcnksm
16
17k
Introduction to Mercari Micorservices Platform Team
tcnksm
5
3.7k
Featured
See All Featured
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
400
Test your architecture with Archunit
thirion
1
2.3k
Facilitating Awesome Meetings
lara
57
7k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
420
Information Architects: The Missing Link in Design Systems
soysaucechin
0
1k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
460
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6k
Product Roadmaps are Hard
iamctodd
55
12k
Become a Pro
speakerdeck
PRO
31
6k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
Optimizing for Happiness
mojombo
378
71k
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