(dst, src []interface{})
| 51 | } |
| 52 | |
| 53 | func appendArgs(dst, src []interface{}) []interface{} { |
| 54 | if len(src) == 1 { |
| 55 | return appendArg(dst, src[0]) |
| 56 | } |
| 57 | |
| 58 | if cap(dst) < len(dst)+len(src) { |
| 59 | newDst := make([]interface{}, len(dst), len(dst)+len(src)) |
| 60 | copy(newDst, dst) |
| 61 | dst = newDst |
| 62 | } |
| 63 | dst = append(dst, src...) |
| 64 | return dst |
| 65 | } |
| 66 | |
| 67 | func appendArg(dst []interface{}, arg interface{}) []interface{} { |
| 68 | switch arg := arg.(type) { |
no test coverage detected