Use go.uber.com/fx for bootstrapping the app

This commit is contained in:
akp 2024-11-12 23:54:35 +00:00
parent 02f4a881a9
commit 9d3232f00a
No known key found for this signature in database
GPG key ID: CF8D58F3DEB20755
8 changed files with 144 additions and 59 deletions

12
go.mod
View file

@ -3,12 +3,18 @@ module github.com/codemicro/palmatum
go 1.20
require (
github.com/google/uuid v1.6.0
github.com/jmoiron/sqlx v1.4.0
github.com/julienschmidt/httprouter v1.3.0
github.com/mattn/go-sqlite3 v1.14.24
go.akpain.net/cfger v0.2.1
golang.org/x/exp v0.0.0-20230801115018-d63ba01acd4b
gopkg.in/yaml.v3 v3.0.1
go.uber.org/fx v1.23.0
)
require github.com/google/uuid v1.6.0 // indirect
require (
go.uber.org/dig v1.18.0 // indirect
go.uber.org/multierr v1.10.0 // indirect
go.uber.org/zap v1.26.0 // indirect
golang.org/x/sys v0.1.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)