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.
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.