Custom Errors

Welcome to tutorial no. 31 in Golang tutorial series. In the last tutorial we learnt how errors are represented in Go and how to handle errors...

Custom Errors - Full Post

Error Handling

Welcome to tutorial no. 30 in Golang tutorial series. What are errors? Errors indicate an abnormal condition occurring in the program. Let's say we are trying...

Error Handling - Full Post

Defer

Welcome to tutorial no. 29 in Golang tutorial series. What is Defer? Defer statement is used to execute a function call just before the surrounding function...

Defer - Full Post

Select

Welcome to tutorial no. 24 in Golang tutorial series. What is select? The select statement is used to choose from multiple send/receive channel operations. The...

Select - Full Post

Channels

Welcome to tutorial no. 22 in Golang tutorial series. In the previous tutorial, we discussed about how concurrency is achieved in Go using Goroutines. In this...

Channels - Full Post

Goroutines

Welcome to tutorial no. 21 in Golang tutorial series. In the previous tutorial, we discussed concurrency and how it is different from parallelism. In this tutorial,...

Goroutines - Full Post

Interfaces - I

Welcome to tutorial no. 18 in Golang tutorial series. This is the first part in our 2 part interface tutorial. What is an interface? In Go,...

Interfaces - I - Full Post

Methods in Go

Welcome to tutorial no. 17 in Golang tutorial series. Introduction A method is just a function with a special receiver type between the func keyword and...

Methods in Go - Full Post

Structs

Welcome to tutorial no. 16 in our Golang tutorial series. What is a struct? A struct is a user-defined type that represents a collection of fields....

Structs - Full Post