Skip to content

Instantly share code, notes, and snippets.

@bykof
Created February 18, 2020 09:53
Show Gist options
  • Save bykof/d895987c3573a90bf37a3e73ae70b1ab to your computer and use it in GitHub Desktop.
Save bykof/d895987c3573a90bf37a3e73ae70b1ab to your computer and use it in GitHub Desktop.
package api
import (
"dashboard/order/domain/service"
"dashboard/order/infrastructure"
"flamingo.me/dingo"
"flamingo.me/flamingo/v3/framework/web"
"os"
)
type Module struct{}
func (module *Module) Configure(injector *dingo.Injector) {
web.BindRoutes(injector, new(Routes))
injector.Bind(new(service.IOrderService)).To(infrastructure.FakeOrderService{})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment