News for hackers. Stuff that matters.
Re:Show HN: Drop-In SQS Replacement Based on SQLite by philippta on Sunday June 30, 2024 @01:55PM (#40838725)
One quick suggestion on project structure:

Move all the structs from models/ into the root directory.

This allow users of this package to have nice and short names like: q.Message and q.Queue, and avoids import naming conflicts if the user has its own „models“ package.

Re:Show HN: Drop-In SQS Replacement Based on SQLite by memset on Sunday June 30, 2024 @02:01PM (#40838771)
Thanks for the tip - and for even looking at the code! I always struggle to figure out how to organize things.
Re:Show HN: Drop-In SQS Replacement Based on SQLite by philippta on Sunday June 30, 2024 @02:05PM (#40838805)
Just noticed that your root directory is already „package main“ so you can either move that to /cmd/something/ or simply rename models/ to q/. That would have the same effect and is also idiomatic.
Re:Show HN: Drop-In SQS Replacement Based on SQLite by pqb on Sunday June 30, 2024 @05:22PM (#40840503)
Actually, the "model/" (note: singular form) directory (package model) would be preferred in the golang world.