Go strings Package Compare()
Compare()
package main/*from w w w . j a v a 2 s . co m*/ import ( "fmt" "strings" ) func main() { fmt.Println(strings.Compare("India", "Indiana")) fmt.Println(strings.Compare("Indiana", "India")) fmt.Println(strings.Compare("India", "India")) }