Akhil Sharma has Published 671 Articles

Golang program to show use of super keyword in class

Akhil Sharma

Akhil Sharma

Updated on 20-Feb-2023 10:43:58

769 Views

In golang, the "super" term doesn't exist in Go. The "super" keyword is used in object-oriented programming languages to denote the parent class or the class that is being inherited from. It is often used to access parent class methods or properties that the child class has modified. In this ... Read More

Golang program to compare two strings lexicographically

Akhil Sharma

Akhil Sharma

Updated on 20-Feb-2023 10:41:54

2K+ Views

In Golang, lexicographic comparison refers to comparing strings in a manner similar to how they would be compared in a dictionary where the words are listed alphabetically. This means that the initial character of each string is used to compare the individual characters of two strings in order. The comparison ... Read More

Golang program to print first letter of each word using regex

Akhil Sharma

Akhil Sharma

Updated on 20-Feb-2023 10:41:04

394 Views

A string of characters known as a regular expression (regex or regexp) creates a search pattern. Regular expressions are frequently employed to carry out string matching, sometimes known as "find and replace, " or pattern matching with strings. Input validation, parsing, and other tasks are also possible with them. Regular ... Read More

Golang program to remove leading zeros

Akhil Sharma

Akhil Sharma

Updated on 20-Feb-2023 10:19:52

2K+ Views

Removing any zeros that appear at the start of a number or string is referred to as "removing leading zeros" in Golang. Leading zeroes are frequently included for formatting or alignment needs, although they don't convey any significant information. They can be eliminated to improve the number's or string's usability ... Read More

Golang program to swapping pair of characters

Akhil Sharma

Akhil Sharma

Updated on 20-Feb-2023 10:18:38

532 Views

A string in Golang is a collection of characters. Since strings in Go are immutable, they cannot be modified after they have been produced. Concatenating or adding to an existing string, however, enables the creation of new strings. A built-in type in Go, the string type can be used in ... Read More

Golang program to compute all the permutations of the string

Akhil Sharma

Akhil Sharma

Updated on 20-Feb-2023 10:15:54

638 Views

In the Go programming language, strings are a built-in data type that represents sequences of characters. They are defined using double quotes (") and can contain any valid Unicode characters. A permutation of a string is a distinct string with the same characters but a different ordering of the characters. ... Read More

Golang Program to Differentiate String == operator and equals() method

Akhil Sharma

Akhil Sharma

Updated on 20-Feb-2023 10:14:39

692 Views

In the Go programming language, strings are a built-in data type that represents sequences of characters. They are defined using double quotes (") and can contain any valid Unicode characters. The == operator in Go is used to determine whether two values, including strings, are equal. The == operator determines ... Read More

Golang program to create a multi-line string using '%Q

Akhil Sharma

Akhil Sharma

Updated on 20-Feb-2023 10:13:43

488 Views

In the Go programming language, strings are a built-in data type that represents sequences of characters. They are defined using double quotes (") and can contain any valid Unicode characters. The multi-line will be printed using backticks and the output will be printed on the console using fmt package. Let’s ... Read More

Golang program to splitting into number of substrings

Akhil Sharma

Akhil Sharma

Updated on 20-Feb-2023 10:12:53

698 Views

In the Go programming language, a substring is a portion of a string that contains a sequence of characters from the original string. A substring can be obtained in Go by using the slicing syntax on a string value.. strings. Split() can be used in Go (Golang) to divide a ... Read More

Golang Program to Check if a string is a valid shuffle of two distinct strings

Akhil Sharma

Akhil Sharma

Updated on 20-Feb-2023 10:11:57

163 Views

In the Go programming language, strings are a built-in data type that represents sequences of characters. They are defined using double quotes (") and can contain any valid Unicode characters. In this article, we will learn how to check if a string is a valid shuffle of two strings using ... Read More

Advertisements