maxgio's notes

Golang

  • Context:

    • https://www.digitalocean.com/community/tutorials/how-to-use-contexts-in-go
  • General:

    • https://www.digitalocean.com/community/tutorial_series/how-to-code-in-go
  • Channels:

    • https://go101.org/article/channel-closing.html
  • ELF dissection:

    • https://qzaidi.github.io/2017/03/05/elf-go-ident/
  • FAQs:

    • https://stackoverflow.com/questions/40823315/x-does-not-implement-y-method-has-a-pointer-receiver
  • Filesystem:

    • https://bitfieldconsulting.com/golang/filesystems
  • Pattterns:

    • Functional options:
      • Self-referential functions and the design of options: https://commandcenter.blogspot.com/2014/01/self-referential-functions-and-design.html
      • Functional options for friendly APIs: https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis
    • https://gogoapps.io/blog/passing-loggers-in-go-golang-logging-best-practices/
  • Concurrency and parallelism:

    • https://spiralscout.com/blog/understanding-concurrency-and-parallelism-in-golang
      • https://github.com/guntenbein/goconcurrency
    • https://www.digitalocean.com/community/tutorials/how-to-run-multiple-functions-concurrently-in-go
  • Profiling

    • Using pprof for memory profiling: https://www.freecodecamp.org/news/how-i-investigated-memory-leaks-in-go-using-pprof-on-a-large-codebase-4bec4325e192
    • Using pprof: https://github.com/ArjunDhar/scribbles/blob/master/go-pprof-working/main.go
  • Garbage collector:

    • https://go.dev/blog/go15gc
  • XML parsing the streaming way:

    • https://www.reddit.com/r/golang/comments/7a4dxw/comment/dp77fd8
    • https://github.com/antchfx/xmlquery/blob/master/parse.go#L269
  • Library bindings:

    • http://go-lang.cat-v.org/library-bindings
  • Servemux and Handlers:

    • https://www.alexedwards.net/blog/an-introduction-to-handlers-and-servemuxes-in-go
←GitOps namespace-as-a-service How I improved consistency in a Go web crawler with retry logics and tuning the HTTP client→

© 2025 maxgio's notes

Powered by Hugo️️️

Paper 5.1