golang string equals code example
Example: if statement string compare go
import "strings"
// if string found in name it returns 0 else 1
if strings.Compare(command, "h") == 0 {
// Do something
}
import "strings"
// if string found in name it returns 0 else 1
if strings.Compare(command, "h") == 0 {
// Do something
}