Skip to main content

Oops

How to Write Classes in Golang

·3 mins
Introduction # I have seen many people coming from Python background struggling with Go. What I have obeserved it they write code that is limited to writing functions and calling them. They never leverage design constructs such as abstraction, encapsulation, inheritance, composition etc. I can understand their pain because I’ve been in the same boat. In today’s post I’ll compare how we write classes in Python vs how we do the same thing in a Go way.