 
 Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Programming Articles - Page 388 of 3366
 
 
			
			992 Views
In Golang, a byte array is a sequence of bytes, and a string is a sequence of Unicode characters. Sometimes, you may need to convert a zero-terminated byte array to a string. This can be useful when working with data that is in the form of a byte array, but needs to be processed as a string. In this article, we will learn how to convert a zero-terminated byte array to a string in Golang. Understanding Zero-Terminated Byte Arrays A zero-terminated byte array, also known as a C-style string, is a sequence of bytes that ends with a null byte ... Read More
 
 
			
			3K+ Views
In Golang, a string is a sequence of Unicode characters. Sometimes, you may want to convert a string to lowercase, which means converting all the letters to their lowercase equivalents. This can be achieved using various methods in Golang. In this article, we will learn how to convert a string to lowercase using different approaches. Using strings.ToLower() The easiest and most common method to convert a string to lowercase in Golang is by using the strings.ToLower() function. This function converts all the ASCII letters in a string to their lowercase equivalents. Here's how to use it to convert a string ... Read More
 
 
			
			548 Views
In Golang, a byte slice is a sequence of bytes. A slice of bytes can be created using the built-in function []byte(). Sometimes, you may want to convert a slice of bytes to uppercase, which means converting all the letters to their uppercase equivalents. This can be easily achieved using the bytes.ToUpper() function or the strings.ToUpper() function. In this article, we will learn how to convert a slice of bytes to uppercase in Golang. Using bytes.ToUpper() The bytes.ToUpper() function converts all the ASCII letters in a slice of bytes to their uppercase equivalents. Here's how to use it to convert ... Read More
 
 
			
			184 Views
In Golang, a byte slice is a sequence of bytes. A slice of bytes can be created using the built-in function []byte(). Sometimes, you may want to convert a slice of bytes to title case, which means capitalizing the first letter of every word. This can be easily achieved using the strings.Title() function. In this article, we will learn how to convert a slice of bytes to title case in Golang. Using strings.Title() The strings.Title() function converts the first letter of each word in a string to uppercase. Here's how to use it to convert a slice of bytes to ... Read More
 
 
			
			782 Views
In Golang, a byte slice is a sequence of bytes. A slice of bytes can be created using the built-in function []byte(). Sometimes, you may want to convert a slice of bytes to lowercase. This can be easily achieved using the bytes.ToLower() function. In this article, we will learn how to convert a slice of bytes to lowercase in Golang. Using bytes.ToLower() The bytes.ToLower() function converts a slice of bytes to lowercase. Here's how to use it − Example package main import ( "bytes" "fmt" ) func main() { ... Read More
 
 
			
			969 Views
In Go, a string is a sequence of Unicode characters. Each character in a string is represented by a Unicode code point, which is a unique integer value assigned to each character in the Unicode standard. Runes in Go are simply an alias for the int32 type, used to represent a Unicode code point. In this article, we'll discuss how to check for a specified rune in a Golang string. Checking for a specified rune in a Golang string is relatively simple. We can use the strings.IndexRune function to check if a specific rune is present in a given string. ... Read More
 
 
			
			364 Views
In Golang, checking string equality is a common task that developers come across when building applications. However, when dealing with strings that contain characters with different case representations in Unicode, it can become a little complicated. Unicode case folding is the process of transforming characters to a common case representation to simplify case-insensitive comparisons. In this article, we will explore how to check string equality under Unicode case folding in Golang. What is Unicode Case Folding? Unicode case folding is a process that converts characters to a common case representation to simplify case-insensitive comparisons. In Unicode, some characters have more ... Read More
 
 
			
			4K+ Views
In Golang, structs are an essential part of the language and are used to define complex data types. Often, you may find yourself in a situation where you need to add a method to a struct to perform some specific action. In this article, we will discuss how to add a method to a struct type in Golang and provide some examples to help you understand the concept. Defining a Struct in Golang Before we dive into adding methods to a struct, let's first understand how to define a struct in Golang. A struct is a composite data type that ... Read More
 
 
			
			6K+ Views
As a popular programming language, Golang is used in many applications and frameworks due to its high performance and easy-to-use syntax. If you are working with interfaces in Golang, you may need to access the fields of the interface to retrieve or manipulate data. In this article, we will discuss how to access interface fields in Golang and provide some examples to help you understand the concept. Understanding Interfaces in Golang Before we dive into accessing interface fields, let's first understand what interfaces are in Golang. An interface is a set of method signatures that define a behavior. In other ... Read More
 
 
			
			525 Views
Isomorphism is defined as two trees either having identical or mirror structures. In the case of mirror structure, the left node data will always match the right node. For example, we will take a number nearest to the mirror and see what its reverse would be, that is the real concept of isomorphism. In this article, we are going to check whether two different binary trees are isomorphic or not. Let’s take an example of Isomorphism in N-ary Trees − Note that, L represents as left node whereas R represents as Right node Mirror structure of P and Q ... Read More