Tag: Strings Package

How To Compare Strings in Golang

In this blog, we will learn how to compare strings in Golang. First we will learn simple string comparison in Golang using relational operator  i.e, ==, !=, >=, <=, <, >. Compare String using Relational Operators String Comparision in Golang using the relational operators is case-sensitive. Let’s see another way of comparing strings i.e compare function…
Read more