golang remove string from array code example Example: golang array remove item a[i] = a[len(a)-1] a = a[:len(a)-1]