Sabid Ansari has Published 199 Articles

Go Programming Language (Introduction)

Sabid Ansari

Sabid Ansari

Updated on 18-Apr-2023 10:06:53

168 Views

Go, also known as Golang, is a programming language created by Google in 2009. Go is an open-source, statically-typed, compiled language that is designed to be simple, efficient, and reliable. It was created to address some of the issues that exist in other programming languages and to provide a better ... Read More

Go Pointer to Pointer (Double Pointer)

Sabid Ansari

Sabid Ansari

Updated on 18-Apr-2023 10:05:56

435 Views

Pointers are a powerful feature in Go that allow you to manipulate and manage memory more efficiently. In Go, a pointer is a variable that stores the memory address of another variable. Pointers are used to pass values by reference and to allocate and deallocate memory dynamically. Go also supports ... Read More

Go Keywords

Sabid Ansari

Sabid Ansari

Updated on 18-Apr-2023 10:04:22

719 Views

Go is a popular programming language that has gained significant popularity in recent years. One of the reasons for its popularity is the simplicity and readability of its syntax, which is aided by the use of keywords. Keywords in Go are reserved words that have specific meanings and cannot be ... Read More

Go Decision Making (if, if-else, Nested-if, if-else-if)

Sabid Ansari

Sabid Ansari

Updated on 18-Apr-2023 10:03:28

211 Views

Decision making is an important aspect of programming, and Go provides a variety of constructs for making decisions in your code. In this article, we'll explore the different types of decision making constructs in Go, including the if, if-else, nested-if, and if-else-if constructs. if statement The if statement in Go ... Read More

Generics in Golang

Sabid Ansari

Sabid Ansari

Updated on 18-Apr-2023 09:58:05

171 Views

Golang, also known as Go, is a popular open-source programming language known for its simplicity and concurrency. However, it lacked one important feature that other modern programming languages have, which is generics. Generics allow a programmer to write flexible, reusable code that works with different types without sacrificing type safety. ... Read More

Generating Random Numbers in Golang

Sabid Ansari

Sabid Ansari

Updated on 18-Apr-2023 09:31:37

2K+ Views

Random numbers play an important role in many applications, from computer games to cryptography. Go has a built-in package called "math/rand" that provides a suite of functions to generate random numbers. In this article, we will explore how to use the "math/rand" package to generate random numbers in Go. Generating ... Read More

Function that takes an interface type as value and pointer in Golang

Sabid Ansari

Sabid Ansari

Updated on 18-Apr-2023 09:29:04

1K+ Views

In Go, it is common to write functions that take interfaces as arguments or pointers to interfaces. This can be useful when you want to write generic code that works with any type that satisfies a particular interface. Functions That Take an Interface Type as Value In Go, interfaces are ... Read More

Function Returning Multiple Values in Go Language

Sabid Ansari

Sabid Ansari

Updated on 18-Apr-2023 09:27:11

126 Views

Go is a modern programming language that offers a wide range of features for developing efficient and reliable software. One such feature is the ability to return multiple values from a function. In this article, we will explore how to use functions that return multiple values in Go. Introduction to ... Read More

Function as a Field in Golang Structure

Sabid Ansari

Sabid Ansari

Updated on 18-Apr-2023 09:26:01

3K+ Views

Functions are a first-class citizen in Go programming language, which means they can be treated as values and used as arguments or return values from other functions. This also extends to structs, where you can include a function as a field in a struct. In this article, we'll explore how ... Read More

Function Arguments in Golang

Sabid Ansari

Sabid Ansari

Updated on 18-Apr-2023 09:23:59

4K+ Views

When it comes to writing programs in Golang, understanding how to pass values to functions is essential. In this article, we will explore the basics of function arguments in Golang and learn how to pass values to functions effectively. What are Function Arguments? In Golang, a function argument is a ... Read More

Advertisements