{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/13250","labels_url":"https://api.github.com/repos/golang/go/issues/13250/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13250/comments","events_url":"https://api.github.com/repos/golang/go/issues/13250/events","html_url":"https://github.com/golang/go/issues/13250","id":116923169,"number":13250,"title":"runtime error: index out of range","user":{"login":"DieselDraft","id":1092854,"avatar_url":"https://avatars.githubusercontent.com/u/1092854?v=3","gravatar_id":"","url":"https://api.github.com/users/DieselDraft","html_url":"https://github.com/DieselDraft","followers_url":"https://api.github.com/users/DieselDraft/followers","following_url":"https://api.github.com/users/DieselDraft/following{/other_user}","gists_url":"https://api.github.com/users/DieselDraft/gists{/gist_id}","starred_url":"https://api.github.com/users/DieselDraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DieselDraft/subscriptions","organizations_url":"https://api.github.com/users/DieselDraft/orgs","repos_url":"https://api.github.com/users/DieselDraft/repos","events_url":"https://api.github.com/users/DieselDraft/events{/privacy}","received_events_url":"https://api.github.com/users/DieselDraft/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-14T12:53:00Z","updated_at":"2015-11-14T13:07:25Z","closed_at":"2015-11-14T13:07:25Z","body":"```\r\nfunc getTasks(name string) []models.TaskQueue {\r\n\tlimit := 100\r\n\r\n13:\tindexMutex.Lock()\r\n14:\ttasks := models.GetTasks(name, index, limit)\r\n15:\tindex += tasks[len(tasks)-1].ID\r\n\tindexMutex.Unlock()\r\n\r\n\treturn tasks\r\n}\r\n```\r\n\r\n```\r\nruntime error: index out of range\r\n\r\ngoroutine 11 [running]:\r\ntaskmanager.getTasks\r\n\t/home/oherych/go/src/bitbucket.org/bukorama/app/services/taskmanager/loading.go:15\r\ntaskmanager.loading\r\n\t/home/oherych/go/src/bitbucket.org/bukorama/app/services/taskmanager/loading.go:24\r\ncreated by bitbucket.org_bukorama_app_services_taskmanager.Init\r\n\t/home/oherych/go/src/bitbucket.org/bukorama/app/services/taskmanager/main.go:19\r\n```\r\n\r\n\r\nHow this possible. I want get last element from slice. I get this error once on 1000 iteration"}}