- Published on
Go Language Paradigm
- Authors
- Name
- Yair Mark
- @yairmark
GoLang is predominantly a procedural and concurrent paradigm programming language and partially object orientated. As someone who has worked with predominantly object orientated and functional languages this is quite a shift.
This was made very clear today when trying to work out how to mock a client we wanted to use in our tests. There are mocking libraries for Go but these appear to require mocking out all parts of what you want to mock and it only seems to work against Go interfaces.
This observation is not a criticism of the language at all. It merely highlights that a mind shift and different understanding of doing things in Go is needed.