https://github.com/mostlygeek/go-quick-ref
Quick Reference Examples for golang
https://github.com/mostlygeek/go-quick-ref
Last synced: 3 months ago
JSON representation
Quick Reference Examples for golang
- Host: GitHub
- URL: https://github.com/mostlygeek/go-quick-ref
- Owner: mostlygeek
- Created: 2014-08-03T05:50:46.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-24T07:50:22.000Z (over 10 years ago)
- Last Synced: 2025-02-12T16:51:52.950Z (4 months ago)
- Language: Go
- Size: 230 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Other Good Resources
* [What's in a Name](http://talks.golang.org/2014/names.slide) - slides, guidelines for naming things in go
* [http://golang.org/doc/faq#methods_on_values_or_pointers](http://golang.org/doc/faq#methods_on_values_or_pointers) Should I define methods on values or pointers? - important to know these finer points
* use a pointer if:
* need to change a value and have it visible to the caller?
* big struct, pointer is more efficient
* consistency: some methods use pointer receivers, the rest should too
* [Laws of Reflection](http://blog.golang.org/laws-of-reflection) - basic(ish) introduction to reflection in go