take the following object
type Struct struct {
foo int
bar string
slice []string
and I have two instances
a := Struct{
foo: 1
bar: "foobar"
slice: ["a","b","c"]
}
b := Struct{
foo: 1
bar: "foobar"
slice: ["c","b","a"]
}
what modifiers do I need to add so that Struct.slice ignores order?
What if I have a parent struct
type Parent struct {
anotherSlice []string
child Struct
}
and anotherSlice requires strict order but child.slice does not?