Release v0.7.0
Release Note:
- resolved issue for windows os
- add fx config generation by reading comment
geng fx
On providing service:
package service
type CognitoAdapter struct{}
// @fxProvide
// @fxAs outgoing.AuthHandler
func NewCognitoAdapter() *CognitoAdapter {
return &CognitoAdapter{}
}
type FirebaseAdapter struct{}
// @fxProvide
func NewFirebaseAdapter() *FirebaseAdapter {
return &FirebaseAdapter{}
}
Generated fx module:
package service
import "go.uber.org/fx"
// This file is generated by geng. DO NOT EDIT.
var Service = fx.Module("service",
fx.Provide(fx.Annotate(NewCognitoAdapter, fx.As(new(outgoing.AuthHandler)))),
fx.Provide(NewFirebaseAdapter),
)