Category: Go

Go – Slices

In Go, slice is a dynamically-sized, segmented view of an underlying array. This segment can be the entire array or a subset of an array….

Go – Structures

Go arrays allow you to define variables that can hold several data items of the same kind. Structure is another user-defined data type available in Go programming,…

Go – Pointers

A pointer is a variable that stores the address of another variable. The general form of a pointer variable declaration is: var var_name *var-type   A newly declared…

Go – Arrays

Arrays in Golang or Go programming Language  is much similar to other programming languages. In the program, sometimes we need to store a collection of…

Go – Strings

Strings, which are widely used in Go programming, are a readonly slice of bytes. In the Go programming language, strings are slices. The Go platform…

Go – Scope Rules

A scope in any programming is a region of the program where a defined variable can exist and beyond that the variable cannot be accessed….

Go – Functions

In Go, functions are the basic building blocks. A function is used to break a large problem into smaller tasks. We can invoke a function…

Go – Loops

There may be a situation, when you need to execute a block of code several number of times. In general, statements are executed sequentially: The…

Go- Decision Making

Decision making in programming is similar to decision making in real life. In decision making, a piece of code is executed when the given condition…

Go – Operators

Operators are the foundation of any programming language. Thus the functionality of the Go language is incomplete without the use of operators. Operators allow us…