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
0
130
Hello Go
Get Go installed.
Nathan Youngman
July 28, 2014
Tweet
Share
More Decks by Nathan Youngman
See All by Nathan Youngman
The Healthy Programmer
nathany
2
93
Go and Node.js: a comparison
nathany
1
160
Diet Hacks
nathany
2
330
Go 1.6 and HTTP/2
nathany
3
100
Upgrading Rails Redux
nathany
1
84
GopherCon recap
nathany
0
140
Go Functions
nathany
0
89
Go Arrays & Slices
nathany
0
110
Go Types
nathany
2
120
Other Decks in Programming
See All in Programming
受け取る人から提供する人になるということ
little_rubyist
0
230
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
860
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Enabling DevOps and Team Topologies Through Architecture: Architecting for Fast Flow
cer
PRO
0
330
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
260
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
170
最新TCAキャッチアップ
0si43
0
140
初めてDefinitelyTypedにPRを出した話
syumai
0
400
GitHub Actionsのキャッシュと手を挙げることの大切さとそれに必要なこと
satoshi256kbyte
5
430
レガシーシステムにどう立ち向かうか 複雑さと理想と現実/vs-legacy
suzukihoge
14
2.2k
3rd party scriptでもReactを使いたい! Preact + Reactのハイブリッド開発
righttouch
PRO
1
600
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Embracing the Ebb and Flow
colly
84
4.5k
Code Review Best Practice
trishagee
64
17k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
410
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Visualization
eitanlees
145
15k
How GitHub (no longer) Works
holman
310
140k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
Speed Design
sergeychernyshev
24
610
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Why Our Code Smells
bkeepers
PRO
334
57k
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