Go solution 
\nfunc plusOne(digits []int) []int {\n    for i := len(digits)-1; i >= 0; i-- {\n        if digits[i] < 9 {\n            digits[i] += 1\n            return digi
```\nfunc plusOne(digits []int) []int {\n    for i := len(digits)-1; i >= 0; i-- {\n        if digits[i] < 9 {\n            digits[i] += 1\n            return digits\n        }\n        digits[i] = 0\n    }\n    \n    digits = append([]int{1}, digits...)\n    \n    return digits\n}\n```
[]