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
91
Go and Node.js: a comparison
nathany
1
150
Diet Hacks
nathany
2
330
Go 1.6 and HTTP/2
nathany
3
94
Upgrading Rails Redux
nathany
1
78
GopherCon recap
nathany
0
130
Go Functions
nathany
0
75
Go Arrays & Slices
nathany
0
100
Go Types
nathany
2
110
Other Decks in Programming
See All in Programming
CA.swift19 恋するAIアプリ開発の裏側
oskmr
0
380
Implementing Design Systems in Swift
seyfoyun
2
480
VS Code をプロダクトにどう取り込むか
onomax
1
760
禅の心を手に入れよ
eltociear
1
410
Native Federation: The Future of Micro Frontends in Angular
manfredsteyer
PRO
0
110
dbtのドメイン分割による データ基盤の改善とDigdagとの連携
sakama
0
460
使ってみよう Azure AI Document Intelligence
kosmosebi
2
370
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
180
Apache Hive 4 on Treasure Data
ryukobayashi
1
440
Milestoner
bkuhlmann
1
420
Git Rebase
bkuhlmann
11
1.6k
デフォルトにして至高、RubyMineの大好きな所
ruzia
0
940
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
Documentation Writing (for coders)
carmenintech
60
4k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
Typedesign – Prime Four
hannesfritz
36
2.1k
Producing Creativity
orderedlist
PRO
338
39k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
6.9k
Code Reviewing Like a Champion
maltzj
515
39k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.7k
Adopting Sorbet at Scale
ufuk
69
8.6k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
79
43k
RailsConf 2023
tenderlove
9
560
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