How can I remove a user defined struct from a user defined slice of user defined structs?
Something like this:
type someStruct struct {
someOtherStruct *typeOfOtherStruct
someInt int
someString string
}
var someStructs []someStruct
func someFunc(ss someStruct, ssSlice someStructs) {
// .. want to remove ss from ssSlice
}
I probably should loop til I find the index, and then remove it. But how do I compare the structs?