Minimal recipes for reading a file, overwriting one, and walking a directory tree in Go, with a small end-to-end example that ties the three together.
·2 min read·
go
snippets
A handful of GORM snippets I keep around when I start a project in Go — installing, modeling, validations, many-to-many relations, hooks, and the queries I run most often.