Return Empty Slice in Golang
If you have to return an empty slice (of any type) there are three ways to do it. Return a direct slice: 2. Return a… Read More »Return Empty Slice in Golang
If you have to return an empty slice (of any type) there are three ways to do it. Return a direct slice: 2. Return a… Read More »Return Empty Slice in Golang
Lovely Golang! I like this feature in Go which you can return multiple values from your functions 🙂 Look at the below function definition and… Read More »Golang Return Multiple Values: Different Types + Error