JoinSlice joins a string and a slice into a new slice.
(a string, b ...string)
| 205 | |
| 206 | // JoinSlice joins a string and a slice into a new slice. |
| 207 | func JoinSlice(a string, b ...string) []string { |
| 208 | res := make([]string, 0, len(b)+1) |
| 209 | |
| 210 | res = append(res, a) |
| 211 | res = append(res, b...) |
| 212 | |
| 213 | return res |
| 214 | } |
| 215 | |
| 216 | // JoinSliceAny joins a string and a slice into a new interface{} slice. |
| 217 | func JoinSliceAny(a string, b ...string) []interface{} { |
no outgoing calls
no test coverage detected
searching dependent graphs…