File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ //go:build cgo
2+
13package database_test
24
35import (
@@ -145,7 +147,7 @@ func (y *YourModule) RequiresServices() []modular.ServiceDependency {
145147}
146148
147149func (y * YourModule ) Constructor () modular.ModuleConstructor {
148- return func (app * modular.StdApplication , services map [string ]any ) (modular.Module , error ) {
150+ return func (app modular.Application , services map [string ]any ) (modular.Module , error ) {
149151 // Get the JSONSchemaService from the services map
150152 dbService , ok := services ["database.service" ].(database.DatabaseService )
151153 if ! ok {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/GoCodeAlone/modular/modules/database
33go 1.23.5
44
55require (
6- github.com/GoCodeAlone/modular v1.1.2
6+ github.com/GoCodeAlone/modular v1.2.0
77 github.com/mattn/go-sqlite3 v1.14.27
88)
99
Original file line number Diff line number Diff line change 11github.com/BurntSushi/toml v1.2.1 /go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ =
22github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg =
33github.com/BurntSushi/toml v1.5.0 /go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho =
4- github.com/GoCodeAlone/modular v1.1.2 h1:E5aB5L71Z20+rqz6+cw0Vex0gCrD4TpIYKwLcqof3sY =
5- github.com/GoCodeAlone/modular v1.1.2 /go.mod h1:LYqrbw3/LkxJcQdQI+8fADVf4s73m31FRvX2ekpI/SA =
4+ github.com/GoCodeAlone/modular v1.2.0 h1:Ut7jVIhIjlJEBZDihn7ihON44oUlrgzfegFgdrEuC8Y =
5+ github.com/GoCodeAlone/modular v1.2.0 /go.mod h1:LYqrbw3/LkxJcQdQI+8fADVf4s73m31FRvX2ekpI/SA =
66github.com/creack/pty v1.1.9 /go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E =
77github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
88github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
You can’t perform that action at this time.
0 commit comments