Siva Sai has Published 279 Articles

How to Convert a zero terminated byte array to string in Golang?

Siva Sai

Siva Sai

Updated on 20-Apr-2023 09:56:37

589 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 ... Read More

How to convert a string in lower case in Golang?

Siva Sai

Siva Sai

Updated on 20-Apr-2023 09:55:57

2K+ 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 ... Read More

How to convert a slice of bytes in uppercase in Golang?

Siva Sai

Siva Sai

Updated on 20-Apr-2023 09:54:49

258 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 ... Read More

How to convert a slice of bytes in title case in Golang?

Siva Sai

Siva Sai

Updated on 20-Apr-2023 09:54:07

70 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 ... Read More

How to convert a slice of bytes in lowercase in Golang?

Siva Sai

Siva Sai

Updated on 20-Apr-2023 09:53:03

308 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 ... Read More

How to check the specified rune in Golang String?

Siva Sai

Siva Sai

Updated on 20-Apr-2023 09:52:01

485 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 ... Read More

How to check String for equality under Unicode case folding in Golang?

Siva Sai

Siva Sai

Updated on 20-Apr-2023 09:51:37

192 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 ... Read More

How to add a method to struct type in Golang?

Siva Sai

Siva Sai

Updated on 20-Apr-2023 09:51:00

3K+ 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 ... Read More

How to Access Interface Fields in Golang?

Siva Sai

Siva Sai

Updated on 20-Apr-2023 09:49:38

4K+ 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 ... Read More

Golang Program to Check Status of a URL_Website

Siva Sai

Siva Sai

Updated on 19-Apr-2023 13:18:58

601 Views

When building web applications, it's essential to ensure that all URLs and websites are functional and accessible to users. Checking the status of a URL or website is crucial in determining whether there is an issue that needs to be addressed. In this article, we will discuss how to write ... Read More

Advertisements