Overview In Golang string are UTF-8 encoded. strings package of GO provides a Compare method that can be used to compare two strings in Go. Note that this method compares strings lexicographically….
Tag: compare
Comparing floating point numbers in Golang
Introduction Go Lang has two types of floats float32 float64 Comparing Same Float Types Two floating point numbers can be compared using Go’s == operator assuming they are the same float types….