Siva Sai has Published 279 Articles

Golang Program that uses String Switch

Siva Sai

Siva Sai

Updated on 18-Apr-2023 10:51:42

670 Views

Golang is a popular programming language that offers a range of powerful features. One of these features is the ability to use the switch statement with a string type variable. In this article, we will explore how to write a Golang program that uses a string switch statement. What is ... Read More

Golang Program that Uses Named Return Values and Defaults

Siva Sai

Siva Sai

Updated on 18-Apr-2023 10:51:21

551 Views

Golang is a powerful programming language that offers a range of features and tools for building efficient and reliable applications. One such feature is the ability to use named return values and defaults in functions. In this article, we will discuss how to use named return values and defaults in ... Read More

Golang program that uses func with variable argument list

Siva Sai

Siva Sai

Updated on 18-Apr-2023 10:50:36

238 Views

Golang is a powerful programming language that offers a range of features and tools for building efficient and reliable applications. One such feature is the ability to define functions with variable argument lists. In this article, we will discuss how to use functions with variable argument lists in Golang and ... Read More

Golang program that uses func with two arguments

Siva Sai

Siva Sai

Updated on 18-Apr-2023 10:50:02

392 Views

Golang is a powerful programming language that offers a range of features and tools for building efficient and reliable applications. One such feature is the ability to define functions with multiple arguments. In this article, we will discuss how to use functions with two arguments in Golang and why this ... Read More

Golang Program that uses func as Local Variable

Siva Sai

Siva Sai

Updated on 18-Apr-2023 10:49:30

217 Views

Golang is a popular programming language that offers a range of features and tools for building efficient and reliable applications. One such feature is the ability to use functions as local variables. In this article, we will discuss how to use functions as local variables in Golang and why this ... Read More

Golang program that uses fallthrough keyword

Siva Sai

Siva Sai

Updated on 18-Apr-2023 10:48:46

2K+ Views

Golang is a powerful programming language that has gained a lot of popularity in recent years. It offers many features and tools that make it easier for developers to create efficient and reliable applications. One of the features that sets Golang apart from other programming languages is the fallthrough keyword. ... Read More

Golang Program that switch on floating-point numbers

Siva Sai

Siva Sai

Updated on 18-Apr-2023 10:48:11

156 Views

In Go, the switch statement can also be used with floating-point numbers. This feature can be useful in certain scenarios, where a floating-point value needs to be compared against different thresholds or ranges. In this article, we will go through an example program that demonstrates the use of switch statement ... Read More

Golang Program that Removes Duplicates Using Nested Loops

Siva Sai

Siva Sai

Updated on 18-Apr-2023 10:42:54

84 Views

Removing duplicates from a slice or an array is a common problem in programming. One of the ways to solve this problem in Golang is by using nested loops. In this article, we will write a Golang program that removes duplicates from a slice using nested loops. Understanding the Problem ... Read More

Golang Pointer to an Array as Function Argument

Siva Sai

Siva Sai

Updated on 18-Apr-2023 10:42:02

2K+ Views

Golang allows us to use pointers to access the value of an object in memory. Using pointers can improve the performance of the code by reducing the memory allocation and enhancing the efficiency of the program. In this article, we will explore how to use a pointer to an array ... Read More

Advertisements