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
Site-Speed That Sticks
csswizardry
13
1.2k
Into the Great Unknown - MozCon
thekraken
41
2.6k
Leo the Paperboy
mayatellez
7
1.9k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
480
GitHub's CSS Performance
jonrohan
1033
470k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
Speed Design
sergeychernyshev
33
1.9k
What's in a price? How to price your products and services
michaelherold
247
13k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
440
Code Reviewing Like a Champion
maltzj
528
40k
Designing for Performance
lara
611
70k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
150
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