📅  最后修改于: 2022-03-11 14:45:00.182000             🧑  作者: Mango
import "strings"
// if string found in name it returns 0 else 1
if strings.Compare(name, "compare string") == 1 {
// Do something
}