go 1.21, clean code
golang []\nfunc constructArray(n int, k int) []int {\n\tret := make([]int, n)\n\tleft, right := 1, n\n\tfor i := 0; i < n; i++ {\n\t\tif k%2 == 0 {\n\t\t\tret[i
```golang []\nfunc constructArray(n int, k int) []int {\n\tret := make([]int, n)\n\tleft, right := 1, n\n\tfor i := 0; i < n; i++ {\n\t\tif k%2 == 0 {\n\t\t\tret[i] = left\n\t\t\tleft++\n\t\t} else {\n\t\t\tret[i] = right\n\t\t\tright--\n\t\t}\n\t\tif k > 1 {\n\t\t\tk--\n\t\t}\n\t}\n\treturn ret\n}\n```
['Go']