done
This commit is contained in:
parent
c2842a54ba
commit
32b8835013
|
@ -1,9 +1,9 @@
|
|||
package {{Package}}
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
"log/slog"
|
||||
|
||||
"go.uber.org/fx"
|
||||
"go.uber.org/fx"
|
||||
)
|
||||
|
||||
type {{title Package}} struct {
|
||||
|
@ -11,20 +11,22 @@ type {{title Package}} struct {
|
|||
}
|
||||
|
||||
type Params struct {
|
||||
fx.In
|
||||
fx.In
|
||||
|
||||
Lc fx.Lifecycle
|
||||
Log *slog.Logger
|
||||
}
|
||||
|
||||
type Result struct {
|
||||
fx.Out
|
||||
fx.Out
|
||||
|
||||
Output *{{title Package}}
|
||||
Output *{{title Package}}
|
||||
}
|
||||
|
||||
func New(p Params) (r Result, err error) {
|
||||
o := &{{title Package}}{}
|
||||
o.log = p.Log
|
||||
|
||||
r.Output = o
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue