Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Hello Go
Search
Nathan Youngman
July 28, 2014
Programming
0
160
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
110
Go and Node.js: a comparison
nathany
1
230
Diet Hacks
nathany
2
380
Go 1.6 and HTTP/2
nathany
3
140
Upgrading Rails Redux
nathany
1
94
GopherCon recap
nathany
0
180
Go Functions
nathany
0
100
Go Arrays & Slices
nathany
0
150
Go Types
nathany
2
130
Other Decks in Programming
See All in Programming
全員アーキテクトで挑む、 巨大で高密度なドメインの紐解き方
agatan
8
19k
非同期処理の迷宮を抜ける: 初学者がつまづく構造的な原因
pd1xx
1
660
20251127_ぼっちのための懇親会対策会議
kokamoto01_metaps
2
420
How Software Deployment tools have changed in the past 20 years
geshan
0
28k
Navigation 3: 적응형 UI를 위한 앱 탐색
fornewid
1
190
CSC305 Lecture 17
javiergs
PRO
0
300
Microservices Platforms: When Team Topologies Meets Microservices Patterns
cer
PRO
1
960
Why Kotlin? 電子カルテを Kotlin で開発する理由 / Why Kotlin? at Henry
agatan
2
6.7k
Full-Cycle Reactivity in Angular: SignalStore mit Signal Forms und Resources
manfredsteyer
PRO
0
190
DSPy Meetup Tokyo #1 - はじめてのDSPy
masahiro_nishimi
1
150
Integrating WordPress and Symfony
alexandresalome
0
130
Building AI Agents with TypeScript #TSKaigiHokuriku
izumin5210
6
1.2k
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
Unsuck your backbone
ammeep
671
58k
Docker and Python
trallard
46
3.7k
Building Applications with DynamoDB
mza
96
6.8k
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Navigating Team Friction
lara
191
16k
GraphQLとの向き合い方2022年版
quramy
50
14k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.3k
Automating Front-end Workflow
addyosmani
1371
200k
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