When I want to learn something new. It is much easier for me to make something out of it. Probably because my learning type is kinesthetic, must involve physical muscle. In the case of learning to code, muscle involved is finger muscle while typing the code. Coding is not typing, but still … typing is involved … for now.
So I decided to learn Go programming language. Intrigued by its well-known good performance, and also its built-in
async. And also, which is another big reason, being bored by messy
So before I was able to code in Golang, of course, I need to learn it a bit first, which involved reading. Here is my reading list for Golang:
- Golang Documentation
- A Tour of Go
- Writing Web Applications in Go
- Building Web Apps with Go
- Build web application with Golang
After reading those above, my brain and hands start to be itchy to try the language. And because I also wanted to learn about
chatbot, and after reading Facebook Messenger Quick-Start, I decided to rewrite the messenger-bot in Go.
And then, this is what I have come up with so far: this go-messenger-bot Github repo.
Let me just paste its README.md here:
Facebook Messenger Quick-Start Sample in Golang https://glitch.com/edit/#!/project/messenger-bot
building and running
go build messenger-bot.go
VERIFY_TOKEN=??? PAGE_ACCESS_TOKEN=??? ./messenger-bot
docker run --publish 8080:8080 --env VERIFY_TOKEN=??? --env PAGE_ACCESS_TOKEN=??? siriusdely/go-messenger-bot
OK, that’s it.
Point for improvements: