Build your LINE Bot with Go by Evan Lin on DSC x GDE on 2020/05/07. Video on https://www.youtube.com/watch?v=60icDO767G8
Go LINE Developer RelationsEvan Lin2020.05
View Slide
Agenda•Who am I? Why I learn Go?•What is Go?•Using Golang to build LINE Bot•How I became GDE?•LINE TECH FRESH•Q&A
Evan Lin• Google Developer Expert• LINE Developer Meetup• LINE TAIWAN TECHPULSE OrganizerLINE Technology Evangelist
My history background
Windows Application Developer 10+
Web application developmentSurveillance Smart Home
Our Tech Stack. (before)
My (ex) boss told me.. I have secret tip..
What is pokemon Go?
What is Go• Create by Google• Design by• Ken Thompson• Rob Pike• Robert Griesemer• Feature:• Compiled• Statically Typed• Garbage Collection
Go is fast!
gofmt / goimport
?• Forget import package• • if else • Indent• Demo: https://play.golang.org/p/DD0r3d25E4C
”go test” save your time for testinghttps://play.golang.org/p/jynzyytYzhC https://play.golang.org/p/P_P_bmOqlCB
“godoc” help you build documentationhttps://pkg.go.dev/github.com/kkdai/youtube?tab=doc
Goroutine: https://play.golang.org/p/rjT7yXqft_CUnbuffered Channel: https://play.golang.org/p/zaNUS8IhzfTBuffered Channel:• https://tour.golang.org/concurrency/3• https://tour.golang.org/concurrency/4
https://tour.golang.org/list“A tour for Go” to learn more detail.
https://go-tour-zh-tw.appspot.com/basics/1 (Wait a second…)
Learn Go from LINE chatbot
Why using chatbot as example?
What is LINE Chatbot
Create LINE Bot within 5 mins•Request channel for LINE Bot•Deploy LINE Bot server on Heroku•Change related setting on Channel•Go ! Online (video)•How to modify it? (video)
Build advanced Chatbot in Gohttps://youtu.be/B9m_6brhkdchttps://github.com/kkdai/LineBotPetNeedMe
How to become Go GDE
How I became Go GDE l learn Go• Blog post (weekly)• Write everything with Go• SHARE! SHARE! SHARE!! With everyone
How to write more blog posts• Start from learning note.• TIL (Today I learn) is the best practice.• Writing is the best way to learn deeper.
Writing everything with Gohttps://github.com/kkdai/project52
Learn new Go features• Learn new features using `go get`• Learn from document• Write related into your language TIL.
SHARE! SHARE! SHARE!!• Meetup/Conference approach learning• Share >>> Learn• Open mind
Attend COSCUP 2020
Can’t get the ticket?
Conference Speaker iswho cannot get ticketwilling to share!- anonymous
COSCUP 2020 CFPhttps://blog.coscup.org/2020/04/coscup-2020-cfp-is-now-open.html#gohttps://blog.coscup.org/2020/04/coscup-2020-cfp-is-now-open.html#chatbot
LINE TECH FRESHhttps://engineering.linecorp.com/zh-hant/blog/tech-fresh-2020/
Q&A