Helpers
(slice interface{}, val interface{})
| 1135 | // |
| 1136 | |
| 1137 | func appendVal(slice interface{}, val interface{}) interface{} { |
| 1138 | return reflect.Append(reflect.ValueOf(slice), reflect.ValueOf(val)).Interface() |
| 1139 | } |
| 1140 | |
| 1141 | // destStruct must be a pointer to a struct |
| 1142 | func setField(val interface{}, destStruct interface{}, fieldName string) error { |
no test coverage detected