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
Hey oh let's go
Search
Renato Suero
June 28, 2017
Technology
0
30
Hey oh let's go
Apresentação sobre GO no GDG Lisboa em Junho de 2017
Renato Suero
June 28, 2017
Tweet
Share
More Decks by Renato Suero
See All by Renato Suero
Implementando realtime usando MQTT e Go
renatosuero
0
63
Go Meetup dezembro
renatosuero
0
32
Golang PixelsCamp
renatosuero
0
48
Let's GO
renatosuero
0
66
GO Meetup
renatosuero
0
53
Aplicação Dinâmica com BackboneJS
renatosuero
0
20
Provisionando Servidores com Ansible
renatosuero
0
210
Other Decks in Technology
See All in Technology
多言語化対応における TypeScript の型定義を通して開発のしやすさについて考えた / TSKaigi TypeScript Multilingualization
nabeliwo
2
380
拓展QA日常工作的邊界
line_developers_tw
PRO
0
550
B2C、B2B プロダクトマネジメントの違い(および思考の罠) / B2C, B2B PM and reduction fallacy
ykmc09
5
2.3k
Cloudflare WorkersがPythonに対応したので試してみた
miura55
0
190
データ分析力を高めるSQL研修サービス『SQL Everyone』
hikarut
1
380
株式会社EventHub・エンジニア採用資料
eventhub
0
2.1k
スクラムに出会って「できた」を実感できるようになってきた話 / Scrum makes me feel like I can do it
yayoi_dd
2
110
LINEヤフーのウェブアクセシビリティ
lycorptech_jp
PRO
1
130
本当のガバクラ基礎
toru_kubota
0
310
エムスリーQAチーム紹介資料 / Introduction of M3 QA Team
m3_engineering
1
320
【リラン】AIの光と闇?失敗しないために知っておきたいAIリスクとその対応 ①政府の動き編
tkhresk
0
130
Real World Type Puzzle and Code Generation
yukukotani
4
630
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
660
120k
Building Effective Engineering Teams - LeadDev
addyosmani
33
1.9k
RailsConf 2023
tenderlove
9
580
Clear Off the Table
cherdarchuk
86
310k
Web development in the modern age
philhawksworth
203
10k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Designing for humans not robots
tammielis
247
25k
Why Our Code Smells
bkeepers
PRO
331
56k
Optimizing for Happiness
mojombo
370
69k
Statistics for Hackers
jakevdp
790
220k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
Rails Girls Zürich Keynote
gr2m
91
13k
Transcript
None
GO != Golang
@renatosuero
Um pouco de história Em 2007 começa um projeto interno
no google. Desenvolvido por Rob Pike, Ken Thompson e Robert Griesemer. Em novembro de 2009 o google abriu o fonte da linguagem
https://github.com/golang/go/wiki/GoUsers
None
mkdir -p ~/go/{bin,src,pkg} src Go source code organized into packages
pkg OS and architecture specific compilation artifacts bin Executable Go programs Workspace
touch $GOPATH/src/hello.go package main import "fmt" func main() { fmt.Println("Hello
World") } Hello World
https://golang.org/cmd/go/ go run arquivo.go executa seu codigo go build gera
um arquivo executável go test executa a suíte de testes go env mostrará variáveis de ambiente go get descarrega e instala pacotes e dep. Go Tools
API Hello World
None
None
Siege - Http loading testing and benchmarking utility. Siege params
URL -c *n => numero de requests concorrentes -r *n => numero de repetições por request
Siege -c 8 -r 200 http://localhost:3000/hello Siege -c 8 -r
200 http://localhost:8080/hello
None
Siege -c 10 -r 1 http://localhost:3000/hello2 Siege -c 10 -r
1 http://localhost:8080/hello2
None
None
None
API + JSON
None
None
cache
Concorrência
None
None
Time ./app
Projetos
https://awesome-go.com/#software-packages
Avg 200k / min. Testes Resposta Grails ~85seg 9ms GO
~3.5seg ~0.5ms
https://imasters.com.br/linguagens/o-ceu-e-o-limite-na-utilizacao-de-golang
Referências Effective GO https://golang.org/doc/effective_go.html Go tour https://tour.golang.org/welcome/1 Go By example
https://gobyexample.com/
https://invite.slack.golangbridge.org/ https://gophers.slack.com/
None
@renatosuero