{"id":13561243,"url":"https://github.com/devdrops/go-gotchas","last_synced_at":"2025-05-12T21:26:21.619Z","repository":{"id":148457703,"uuid":"429206512","full_name":"devdrops/go-gotchas","owner":"devdrops","description":"27 desafios em Go","archived":false,"fork":false,"pushed_at":"2022-04-19T18:53:18.000Z","size":22,"stargazers_count":24,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-20T18:38:51.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devdrops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-11-17T21:30:05.000Z","updated_at":"2023-07-21T11:56:58.000Z","dependencies_parsed_at":"2023-05-20T06:15:20.816Z","dependency_job_id":null,"html_url":"https://github.com/devdrops/go-gotchas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fgo-gotchas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fgo-gotchas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fgo-gotchas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fgo-gotchas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devdrops","download_url":"https://codeload.github.com/devdrops/go-gotchas/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253824337,"owners_count":21970002,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T13:00:54.061Z","updated_at":"2025-05-12T21:26:21.581Z","avatar_url":"https://github.com/devdrops.png","language":"Go","readme":"# Go Gotchas\n\n[Go Gotchas](https://yourbasic.org/golang/gotcha/) é uma série de 27 desafios na\nlinguagem Go, propostos para melhoria do código que escrevemos no dia a dia.\n\n## Lista de Todos os Desafios\n\n1. :white_check_mark: [Assignment to entry in nil map](https://yourbasic.org/golang/gotcha-assignment-entry-nil-map/)\n2. :white_check_mark: [Invalid memory address or nil pointer dereference](https://yourbasic.org/golang/gotcha-nil-pointer-dereference/)\n3. :white_check_mark: [Multiple-value in single-value context](https://yourbasic.org/golang/gotcha-multiple-value-single-value-context/)\n4. :white_check_mark: [Array won't change](https://yourbasic.org/golang/gotcha-function-doesnt-change-array/)\n5. :white_check_mark: [Shadowed variables](https://yourbasic.org/golang/gotcha-shadowing-variables/)\n6. :white_check_mark: [Unexpected newline](https://yourbasic.org/golang/gotcha-missing-comma-slice-array-map-literal/)\n7. :white_check_mark: [Immutable strings](https://yourbasic.org/golang/gotcha-strings-are-immutable/)\n8. :white_check_mark: [How does characters add up?](https://yourbasic.org/golang/gotcha-concatenate-rune-string/)\n9. :white_check_mark: [What happened to ABBA?](https://yourbasic.org/golang/gotcha-trim-string/)\n10. :white_check_mark: [Where is my copy?](https://yourbasic.org/golang/gotcha-copy-missing/)\n11. :white_check_mark: [Why doesn't append work every time? (scary bug)](https://yourbasic.org/golang/gotcha-append/)\n12. :white_check_mark: [Constant overflows int](https://yourbasic.org/golang/gotcha-constant-overflows-int/)\n13. :white_check_mark: [Unexpected ++, expecting expression](https://yourbasic.org/golang/gotcha-increment-decrement-statement/)\n14. [Get your priorities right](https://yourbasic.org/golang/gotcha-operator-precedence/)\n15. [Go and Pythagoras](https://yourbasic.org/golang/gotcha-bitwise-operators/)\n16. [No end in sight](https://yourbasic.org/golang/gotcha-integer-overflow-wrap-around/)\n17. [Numbers that starts with zero](https://yourbasic.org/golang/gotcha-octal-decimal-hexadecimal-literal/)\n18. [Whatever remains](https://yourbasic.org/golang/gotcha-remainder-modulo-operator/)\n19. [Time is not a number](https://yourbasic.org/golang/gotcha-multiply-duration-integer/)\n20. [Index out of range](https://yourbasic.org/golang/gotcha-index-out-of-range/)\n21. [Unexpected values in range loop](https://yourbasic.org/golang/gotcha-unexpected-values-range/)\n22. [Can't change entries in range loop](https://yourbasic.org/golang/gotcha-change-value-range/)\n23. [Iteration variable doesn't see change in range loop](https://yourbasic.org/golang/gotcha-range-copy-array/)\n24. [Iteration variables and closures](https://yourbasic.org/golang/gotcha-data-race-closure/)\n25. [No JSON in sight](https://yourbasic.org/golang/gotcha-json-marshal-empty/)\n26. [Is \"three\" a digit?](https://yourbasic.org/golang/gotcha-regexp-substring/)\n27. [Nil is not nil](https://yourbasic.org/golang/gotcha-why-nil-error-not-equal-nil/)\n\nA solução que fiz para cada desafio está dentro de uma pasta neste repositório.\n\n## Observações\n\nAlguns dos desafios propostos foram alterados, corrigidos e/ou modificados desde\na criação dessa lista. Sempre que possível, procuro o\n[autor do texto](https://twitter.com/yourbasic_org) para apontar quando encontro\nisso, e com qual versão de Go isso pode ter sido corrigido. Segue abaixo uma\nlista:\n\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdrops%2Fgo-gotchas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevdrops%2Fgo-gotchas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdrops%2Fgo-gotchas/lists"}