Documentation ¶
Overview ¶
Example ¶
package main import ( "net/http" "github.com/goph/fxt" fxhttp "github.com/goph/fxt/http" "go.uber.org/fx" ) func main() { app := fx.New( fx.NopLogger, fxt.Bootstrap, fx.Provide( func() *fxhttp.Config { return fxhttp.NewConfig(":8080") }, func() http.Handler { return http.NewServeMux() }, fxhttp.NewServer, ), ) if err := app.Err(); err != nil { panic(err) } }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.