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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Nathan Youngman
July 28, 2014
Programming
0
170
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
240
Diet Hacks
nathany
2
390
Go 1.6 and HTTP/2
nathany
3
150
Upgrading Rails Redux
nathany
1
97
GopherCon recap
nathany
0
190
Go Functions
nathany
0
100
Go Arrays & Slices
nathany
0
160
Go Types
nathany
2
140
Other Decks in Programming
See All in Programming
Python’s True Superpower
hynek
0
190
浮動小数の比較について
kishikawakatsumi
0
360
CSC307 Lecture 10
javiergs
PRO
1
690
AI時代のソフトウェア開発でも「人が仕様を書く」から始めよう-医療IT現場での実践とこれから
koukimiura
0
110
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
2k
ご飯食べながらエージェントが開発できる。そう、Agentic Engineeringならね。
yokomachi
1
270
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
950
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
9
5.1k
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
8
2k
CSC307 Lecture 09
javiergs
PRO
1
850
LangChain4jとは一味違うLangChain4j-CDI
kazumura
1
120
JPUG勉強会 OSSデータベースの内部構造を理解しよう
oga5
2
220
Featured
See All Featured
Technical Leadership for Architectural Decision Making
baasie
2
270
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Mobile First: as difficult as doing things right
swwweet
225
10k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
200
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
67
New Earth Scene 8
popppiees
1
1.6k
We Are The Robots
honzajavorek
0
190
The Curious Case for Waylosing
cassininazir
0
260
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
180
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
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