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
Hello Go
Search
Nathan Youngman
July 28, 2014
Programming
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Hello Go
Get Go installed.
Nathan Youngman
July 28, 2014
More Decks by Nathan Youngman
See All by Nathan Youngman
The Healthy Programmer
nathany
2
120
Go and Node.js: a comparison
nathany
1
260
Diet Hacks
nathany
2
400
Go 1.6 and HTTP/2
nathany
3
170
Upgrading Rails Redux
nathany
1
110
GopherCon recap
nathany
0
200
Go Functions
nathany
0
120
Go Arrays & Slices
nathany
0
180
Go Types
nathany
2
140
Other Decks in Programming
See All in Programming
技術記事、 専門家としてのプログラマ、 言語化
mizchi
14
7.5k
【やさしく解説 設計編 #0】DDDのコード、読めるのに分からない人へ
panda728
PRO
2
270
関数型プログラミングのメリットって何だろう?
wanko_it
0
180
ソフトウェア設計に溶けるインフラ ― AWS CDK のインフラ認識論
konokenj
2
580
壊れたパーサから始める関数型設計と構成的なパーサ #fp_matsuri
raiga0310
2
360
吝嗇家のためのAI活用 / AI development for miser - ChatGPT + Issue Driven Development
tooppoo
0
190
エンジニア向け会社紹介/Findy Company Profile
findyinc
6
360k
霧の中の代数的エフェクト
funnyycat
1
410
Welcome to the "Parametricity" 🏙️ − Generic だけど Specific な世界 −
guvalif
PRO
1
170
5分で問診!Composer セキュリティ健康診断
codmoninc
0
450
才能?センス?知らん、 続けたもん勝ちだ。-- 結婚・出産・癌を越えてなお、私がプロダクトを創り続ける理由
16bitidol
2
880
Apache Hive: Toward a Cloud Native Lakehouse
okumin
0
140
Featured
See All Featured
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Embracing the Ebb and Flow
colly
88
5.1k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Scaling GitHub
holman
464
140k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
880
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
380
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
360
Statistics for Hackers
jakevdp
799
230k
Docker and Python
trallard
47
4k
Transcript
Hello Go @EdmontonGo Go gopher designed by Renée French. speakerdeck.com/nathany/hello-go
Install Go • Installers at golang.org/dl! • Set environment variables
export GOPATH=$HOME/code export PATH=$PATH:$HOME/go/bin:$GOPATH/bin • $ go run hello.go package main import "fmt" func main() { fmt.Println("Hello World") }
Editor • Syntax highlighting • Run gofmt on save (or
goimports) • Code completion (gocode) • Golint, go vet, oracle
• Atom atom.io/packages/go-plus • Emacs github.com/dominikh/go-mode.el dominik.honnef.co/posts/2013/03/writing_go_in_emacs • Sublime Text
github.com/DisposaBoy/GoSublime • Vim github.com/fatih/vim-go obahua.com/setup-vim-for-go-development vim.spf13.com
Hello Web package main import ( "fmt" "net/http" )
func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello %s!", r.URL.Path[1:]) } func main() { http.HandleFunc("/", handler) http.ListenAndServe(":8080", nil) } 127.0.0.1:8080/World
Continue • Code Retreat Sunday, August 10 @ 8:45 AM
to 4:00 PM coderetreat-yeg-20140810.eventbrite.ca • Edmonton Go (Hack Night) Monday, August 25 @ 6:30 PM • How to Write Go Code golang.org/doc/code.html • Effective Go golang.org/doc/effective_go.html • A Tour of Go tour.golang.org