Remove and adding elements to array in GO lang
For the output array you need to use append or allocate it with an initial capacity to match the size of input. // before the loop output := make([]string, len(input)) would be my recommendation because append causes a bunch of needless reallocations and you already know what capacity you need since it’s based on the … Read more