improve file structure

This commit is contained in:
Elijah Duffy
2025-06-04 18:11:27 -07:00
parent 120d0789a0
commit 757483a574
3 changed files with 105 additions and 95 deletions

View File

@@ -1,7 +1,8 @@
package dbx
// DBConfig defines the expected structure for database configuration. Includes
// tags for validation and maps to
// DBConfig provides a template for database connection configuration compatible
// with go-toolkit/config. If used as a field in a struct, remember to include
// the `validate:"dive"` tag to ensure that the validator checks sub-fields.
type DBConfig struct {
User string `validate:"required"`
Password string `validate:"required"`