Alissa Lozhkinalissalozhkin.hashnode.dev·Oct 25, 2024Structs in GoA struct is a composite datatype that groups together many fields of different types into one object. This blog post will go over the basics of how to declare a struct and assign values to its attributes. In Go, a struct is defined using the type key...Go Language
Ashok Vangablock360.hashnode.dev·Nov 10, 2022Interfaces & Methods - Composition in GoIn Go, Interfaces are named collections of method signatures. Similar to Java, you just declare methods Since there is no class in Go, we need to use "structs" Go does not support inheritance in its type system, but it supports composition of types ...44 readsGo HackHouseInterfaces Go