Some Go web dev notes

In the past few weeks, I worked on a Go website, learning new things. Go 1.22 has better routing capabilities, eliminating the need for external routing libraries like gorilla/mux. A potential issue is the built-in router’s redirect behavior with trailing slashes, easily resolved by using API endpoints without slashes. sqlc simplifies generating code for DB queries, saving time and allowing direct SQL query writing. Optimizing sqlite for servers and Go 1.19’s GC memory limit setting offer performance enhancements. Making websites in Go is favored for its single static binary deployment, built-in web server, easy toolchain installation, and minimal configuration, making projects easy to revisit.

https://jvns.ca/blog/2024/09/27/some-go-web-dev-notes/

To top