Using  strconv.FormatInt,strings.Split in Golang
Complexity\n- Time complexity:O(N)\n Add your time complexity here, e.g. O(n) \n\n- Space complexity:o(N)\n Add your space complexity here, e.g. O(n) \n\n# Code
# Complexity\n- Time complexity:O(N)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:o(N)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nfunc evenOddBit(num int) []int {\n\n\tbinary := strconv.FormatInt(int64(num), 2)\n\ttemp := strings.Split(binary, "")\n\tfor i, j := 0, len(temp)-1; i < j; i, j = i+1, j-1 {\n\t\ttemp[i], temp[j] = temp[j], temp[i]\n\t}\n\tvar arr =make([]int,2)\n\tfor i := 0; i < len(temp); i++ {\n\t\tif temp[i] == "1" {\n\t\t\tif i%2 == 0 {\n\t\t\t\tarr[0] += 1\n\t\t\t} else {\n\t\t\t\tarr[1] += 1\n\t\t\t}\n\t\t}\n\t}\n\treturn arr\n}\n```
['Go']