March 8, 2019 Extracting Keys of a map
As in many other languages even in Go the map is a very frequently used data-type used for a broad variety of purposes. For many of the use-cases you need access to a map’s keys.
As in many other languages even in Go the map is a very frequently used data-type used for a broad variety of purposes. For many of the use-cases you need access to a map’s keys.
Constants are basically variables whose value can’t change and they are helping us to write safer and cleaner code. But exists something like constant arrays in Go?
In some cases it is helpful to know wether the struct you are working with is empty or not. But sometimes things are not as simple as one might think.
String are nearly everywhere when developing software. But there is a confusing number of variants to deal with them. Let’s have a look.
Some of you might know Python’s generators, which are a simple but efficient way of iterating through collections. By using generators we keep things simple and leave all the overhead of managing memory and any iterator state behind us.