Removing an element from a type asserted Slice of interfaces
问题 In Golang, after asserting to a slice, how is one able to remove an element from said slice? For example, the following returns the error cannot assign to value.([]interface {}) value.([]interface{}) = append(value.([]interface{})[:i],value.([]interface{})[i+1:]...) 回答1: If you have a slice value wrapped in an interface, you can't change it. You can't change any value wrapped in interfaces. When an interface value is created to wrap a value, a copy is made and stored in the interface. When