FAFakorede Abiolainfabcodes.hashnode.dev路May 16, 2020Open-Closed Principle in GoIntroduction The Open-Closed Principle states that types should be open for extension, but closed for modification. Analogy Lets assume we're operating an online store, and we want end users to be able to filter the items by certain criteria ex. by p...00
FAFakorede Abiolainfabcodes.hashnode.dev路May 15, 2020Single Responsibility Principle In GoIntroduction The Single Responsibility Principle states that a class or type should have one primary responsibility and as a result one reason to change. That reason being related to its primary responsibility. Analogy We're writing a simple applicat...00
FAFakorede Abiolainfabcodes.hashnode.dev路Apr 11, 2020Variables in GOIntroduction GO stores a variable inside a computer memory. A variable occupies some space on the memory depending on the variables type. Variables are only created after you run your program so they only become alive at the runtime not the compile-t...00
FAFakorede Abiolainfabcodes.hashnode.dev路Apr 10, 2020An Introduction to GO PackagesGO Packages are like an imaginary box which can contain lots of GO files. In this respect, a package is only a directory inside your GO workspace containing one or more GO source files, or other GO packages. All files should belong to the same packa...00
FAFakorede Abiolainfabcodes.hashnode.dev路Apr 9, 2020The Classic Hello World Program in GOIntroduction To write your first code in any programming language, it has become a norm to start with a simple hello world program. In this post, I will be showing how to write a program in GO and explain all the parts of the program. Lets begin!馃憤馃徏...00