Skip to content

Release v0.7.0

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Apr 17:03
· 56 commits to main since this release

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),
)