Akhil Sharma has Published 671 Articles

Golang Program to Convert Char Type Variables to Int Using Inbuilt Functions

Akhil Sharma

Akhil Sharma

Updated on 29-Dec-2022 12:18:04

3K+ Views

In this tutorial, we will learn how to convert character type to integer type variable using Golang programming language. In the Go programming language, there is no char data type. It uses bytes and rune and strings to represent character values. Example-1: Golang Program Code to Convert Char to Int ... Read More

Golang Program To Convert Array To Set

Akhil Sharma

Akhil Sharma

Updated on 29-Dec-2022 12:15:18

3K+ Views

In this tutorial, we will learn how to convert an array to a set using the Golang programming language. A Set is a collection of items. You can iterate on these items / add new / remove items and clear the set and get the size and check if the ... Read More

Golang Program to Show Encapsulation in Class

Akhil Sharma

Akhil Sharma

Updated on 29-Dec-2022 12:12:43

347 Views

In this article, we are going to learn about Encapsulation in class using Golang Program Encapsulation in go Language vs Other Object-Oriented Languages − The variables or data of a class in object-oriented languages are private to that class and can only be accessed through any member functions of the ... Read More

Golang Program to Show Inheritance in Class

Akhil Sharma

Akhil Sharma

Updated on 29-Dec-2022 12:07:12

6K+ Views

In this article, we are going to learn to show inheritance in class using go programming. Inheritance In Golang − One of the key ideas in object-oriented programming is inheritance, which refers to passing on the properties of the superclass to the base class. As classes are not supported by ... Read More

Golang Program To Convert Set Of String To Array Of String

Akhil Sharma

Akhil Sharma

Updated on 28-Dec-2022 17:03:22

2K+ Views

In this tutorial, we will write a golang program to convert a set of strings to array of strings. In go a set is an abstract data type that can store specific values without repeating any of them and without any particular sequence. Convert Set Of String To Array Of ... Read More

Golang Program to Convert List to Set

Akhil Sharma

Akhil Sharma

Updated on 28-Dec-2022 16:42:50

579 Views

In this tutorial, we will write a golang program to convert a list to set. A linked list is a structure that is created dynamically it has two elements one to store the value and other to store the address of the next structure. A set is an abstract data ... Read More

Golang Program to Convert List to Map

Akhil Sharma

Akhil Sharma

Updated on 28-Dec-2022 16:40:16

949 Views

In this tutorial, we will write a golang program to convert a list to map. A linked list is a structure that is created dynamically it has two elements one to store the value and other to store the address of the next structure. A map store element in key:value ... Read More

Golang Program to Compute the Sum of Diagonals of a Matrix

Akhil Sharma

Akhil Sharma

Updated on 28-Dec-2022 16:37:38

443 Views

In this tutorial, we will write a go language program to find the sum of diagonal elements of a matrix. Compute the Sum of Diagonals of a Matrix In this example, we will find the sum of left diagonal elements of a 3 x 3 matrix using external function. Algorithm ... Read More

Golang Program to Check Whether Two Matrices are Equal or Not

Akhil Sharma

Akhil Sharma

Updated on 28-Dec-2022 16:35:03

170 Views

In this tutorial, we will write a golang program to check whether two matrices are equal or not. A matrix is a collection of numbers arranged in rows and columns, a two-dimensional array. Check Whether Two Matrices are Equal or Not using If Statment In this example we will compare ... Read More

Golang Program to Check If Two Arrays are Equal or Not

Akhil Sharma

Akhil Sharma

Updated on 28-Dec-2022 16:32:18

2K+ Views

In this tutorial, we will see to write a go language program to check if two arrays are equal or not. Check If Two Arrays are Equal or Not Using Equality Operator The following code illustrates how we can check if two arrays are equal or not using the equality ... Read More

Advertisements