if statement string compare go April 14, 2023 by wordlinkanswers if statement string compare go Comment 0 import “strings”</p> <p>// if string found in name it returns 0 else 1<br /> if strings.Compare(command, “h”) == 0 {<br /> // Do something<br /> } Popularity 8/10 Helpfulness 3/10 Language go Source: WorldLinkAnswers Tags: compare go if-statement string Share Link to this answer Share Contributed on Mar 03 2020 Difficult Donkey 0 Answers Avg Quality 2/10 wordlinkanswers