Skip to main content

Golang

  • Memory usage can be retrieved using runtime.ReadMemStats() (Sample Gist)

  • Avoid moving data to the heap for a performance improvement. When assigning variables, if you can work with the reference to your data rather than copying it out, that reduces heap usage.

    Compile your code with the -gcflags=-m look for occurrences of moved to heap. See if you can avoid that. (source, HN)

Learning Resources​

Useful Frameworks​

Useful Libraries​

Database Libraries​

Apps Written in Golang​