Go
Complexity\n- Time complexity:\n Add your time complexity here, e.g. O(n) \n    O(n)\n- Space complexity:\n Add your space complexity here, e.g. O(n) \n    O(n)
# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n    O(n)\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n    O(n)\n# Code\n```\nfunc divideString(s string, k int, fill byte) []string {\n\tresult := make([]string, 0)\n\n\tfor i := 0; i < len(s); i += k {\n\t\tvar subString string\n\n\t\tif i+k < len(s) {\n\t\t\tsubString = s[i : i+k]\n\t\t} else {\n\t\t\tsubString = s[i:] + strings.Repeat(string(fill), k-len(s[i:]))\n\t\t}\n\n\t\tresult = append(result, subString)\n\t}\n\n\treturn result\n}\n```
['Go']