Simple common methods for Go
import "github.com/dlampsi/generigo"
String in slice
str := "apple"
slice := []string{"pineapple", "apple", "onion"}
if generigo.StringInSlice(str, slice) {
// Proccess case
}
Compare slices
slice1 := []string{"one", "two"}
slice2 := []string{"two", "one"}
if generigo.CompareStringSlices(slice1, slice2) {
// Proccess case
}