learning golang
I’ve been trying to learn Golang. Golang is such a charm to work with. The tooling feels like, it’s been developed with all the learnings and shortcomings of previous languages.
For example, There are no unused variables. Although it’s annoying to see error thrown when compiling for unused
variables at first. It quickly becomes obvious. Similarly go fmt tool is used to format go code. Making sure that the code is formatted as expected and there aren’t a million different guidelines (which people barely follow). I personally think this method is better
Everything is made to just work out of the box. No riff raff. go mod vendor and just compiling works flawlessly.
Looking at python and js. This is plain incredible to work with.
learning golang
Resources and stuff captured, while learning golang
package main
import (
"fmt"
"math/rand"
)
articles
List of articles I found useful.
- https://nathany.com/good/
- https://jordanorelli.com/post/32665860244/how-to-use-interfaces-in-go
- https://go.dev/blog/error-handling-and-go
- https://morsmachine.dk/go-scheduler
other resources
- gobyexample.com
posts
🃏 miscelaneous details about golang , Sep 19,'22
🚅 benchmarking
👨🏻🔬 effective go
👨🏻🔬 go tour
- 🐭 learning golang 01 - basics
- 🐭 learning golang 02 - ds and algo
- 🐭 learning golang 03 - functions
- 🐭 learning golang 04 - goroutine
🐭 learning golang using go by example
Frodo: “It’s a pity Bilbo didn’t kill Gollum when he had the chance.”
Gandalf: “Pity? It’s a pity that stayed Bilbo’s hand. Many that live deserve death. Some that die deserve life. Can you give it to them, Frodo? Do not be too eager to deal out death in judgment. Even the very wise cannot see all ends. My heart tells me that Gollum has some part to play in it, for good or evil, before this is over. The pity of Bilbo may rule the fate of many.”
Frodo: “I wish the Ring had never come to me. I wish none of this had happened.”
Gandalf: “So do all who live to see such times, but that is not for them to decide. All we have to decide is what to do with the time that is given to us. There are other forces at work in this world, Frodo, besides that of evil. Bilbo was meant to find the Ring, in which case you were also meant to have it. And that is an encouraging thought.” ― J.R.R. Tolkien, The Fellowship of the Ring