This commit is contained in:
parent
a5fc856764
commit
15a960da19
2 changed files with 5 additions and 1 deletions
|
@ -91,6 +91,10 @@ func handleIndex(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
func splitInt(n int) []int {
|
||||
if n == 0 {
|
||||
return []int{0}
|
||||
}
|
||||
|
||||
slc := []int{}
|
||||
for n > 0 {
|
||||
slc = append(slc, n%10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue