golang remove first element from slice code example Example: golang pop first of array x, a = a[0], a[1:]