Created
February 26, 2020 13:08
-
-
Save bastianccm/61c3d4a9f82a0ccd22b59025fcd65fd0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package polls | |
import ( | |
"mysite/db" | |
"flamingo.me/dingo" | |
"flamingo.me/flamingo/v3/framework/web" | |
) | |
type Module struct{} | |
func (*Module) Configure(injector *dingo.Injector) { | |
web.BindRoutes(injector, new(urls)) | |
} | |
func (*Module) Depends() []dingo.Module { | |
return []dingo.Module{ | |
new(db.Module), // declare dependency to the db module | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment